~mzanetti/unity8/panel-button-fixes

« back to all changes in this revision

Viewing changes to tests/plugins/Ubuntu/Gestures/GestureTest.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:
44
44
{
45
45
    m_view = new QQuickView;
46
46
    m_view->setResizeMode(QQuickView::SizeRootObjectToView);
47
 
    m_view->engine()->addImportPath(QStringLiteral(UBUNTU_GESTURES_PLUGIN_DIR));
48
 
    m_view->engine()->addImportPath(QStringLiteral(TESTS_UTILS_MODULES_DIR));
49
47
    m_view->setSource(QUrl::fromLocalFile(m_qmlFilename));
50
48
    m_view->show();
51
49
    QVERIFY(QTest::qWaitForWindowExposed(m_view));