on xenial help sign in
Fix the pageheaderlabel test
commit62b732b470278ce8d1023461508dbee6f9e8fa16 authorAlbert Astals <albert.astals@canonical.com> dateTue 20 May 2014, 17:16 (12 years ago) parent8be70fd
2 files changed+2−1
tests/mocks/Unity/fake_unity_plugin.cpp+1 tests/qmltests/Components/tst_PageHeaderLabel.qml+1−1
tests/mocks/Unity/fake_unity_plugin.cpp+1
@@ -40,6 +40,7 @@ void FakeUnityPlugin::registerTypes(const char *uri)
4040 Q_ASSERT(uri == QLatin1String("Unity"));
4141
4242 qmlRegisterType<Scopes>(uri, 0, 2, "Scopes");
43+ qmlRegisterType<Scope>(uri, 0, 2, "MockScope");
4344 qmlRegisterUncreatableType<unity::shell::scopes::ScopeInterface>(uri, 0, 2, "Scope", "Can't create Scope object in QML.");
4445 qmlRegisterUncreatableType<unity::shell::scopes::CategoriesInterface>(uri, 0, 2, "Categories", "Can't create Categories object in QML.");
4546 qmlRegisterUncreatableType<ResultsModel>(uri, 0, 2, "ResultsModel", "Can't create ResultsModel object in QML.");
tests/qmltests/Components/tst_PageHeaderLabel.qml+1−1
@@ -26,7 +26,7 @@ Item {
2626 width: units.gu(110)
2727 height: units.gu(30)
2828
29− Scope {
29+ MockScope {
3030 id: scopeMock
3131 }
3232