~mzanetti/unity8/panel-button-fixes

« back to all changes in this revision

Viewing changes to tests/plugins/Dash/listviewwithpageheadersectiontest.cpp

  • Committer: CI Train Bot
  • Author(s): Albert Astals Cid, Michał Sawicz
  • Date: 2015-09-22 12:57:02 UTC
  • mfrom: (1752.8.47 origin/autopkgtests)
  • Revision ID: ci-train-bot@canonical.com-20150922125702-wboqbqanpto9l9s2
Add DEP-8 test for all our UI and unit tests

Some refactoring was needed:
- added a basic Ubuntu.Web mock
- made plugin path an environment, not a compiled-in bit
- moved Unity.Application resources into .qrc

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
    void init()
134
134
    {
135
135
        view = new QQuickView();
136
 
        view->engine()->addImportPath(BUILT_PLUGINS_DIR);
137
136
        view->setSource(QUrl::fromLocalFile(DASHVIEWSTEST_FOLDER "/listviewwithpageheadertestsection.qml"));
138
137
        lvwph = dynamic_cast<ListViewWithPageHeader*>(view->rootObject()->findChild<QQuickFlickable*>());
139
138
        model = view->rootObject()->findChild<QQmlListModel*>();