~mzanetti/unity8/panel-button-fixes

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/fake_scope.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:
253
253
        m["foreground-color"] = "blue";
254
254
        m["page-header"] = h;
255
255
    } else if (m_id == "MockScope4") {
256
 
        h["navigation-background"] = QUrl(sourceDirectory() + "tests/qmltests/Dash/artwork/background.png");
 
256
        h["navigation-background"] = QUrl(sourceDirectory() + "/tests/qmltests/Dash/artwork/background.png");
257
257
        m["page-header"] = h;
258
258
    } else if (m_id == "MockScope5") {
259
259
        h["background"] = "gradient:///lightgrey/grey";
260
 
        h["logo"] = QUrl(sourceDirectory() + "tests/qmltests/Dash/tst_PageHeader/logo-ubuntu-orange.svg");
 
260
        h["logo"] = QUrl(sourceDirectory() + "/tests/qmltests/Dash/tst_PageHeader/logo-ubuntu-orange.svg");
261
261
        h["divider-color"] = "red";
262
262
        h["navigation-background"] = "color:///black";
263
263
        m["page-header"] = h;