on xenial help sign in
Really only do this for make tryGenericScopeView
commit5f5d224a106abe82604af1124521d6382b69a6ae authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 17 Aug 2016, 12:14 (10 years ago) parent1491449
1 file changed+2−1
tests/qmltests/Dash/tst_GenericScopeView.qml+2−1
tests/qmltests/Dash/tst_GenericScopeView.qml+2−1
@@ -22,6 +22,7 @@ import "../../../qml/Dash"
2222import "../../../qml/Components"
2323import Ubuntu.Components 1.3
2424import Unity.Test 0.1 as UT
25+import Qt.test.qtestroot 1.0
2526
2627Item {
2728 id: shell
@@ -41,7 +42,7 @@ Item {
4142 id: scopes
4243 // for tryGenericScopeView
4344 onLoadedChanged: {
44− if (loaded && !testCase.running) {
45+ if (loaded && UT.Util.isInstanceOf(QTestRootObject, "DummyTestRootObject")) {
4546 genericScopeView.scope = scopes.getScope(2);
4647 genericScopeView.isCurrent = true;
4748 }