on xenial help sign in
Fix dash overview test.
commit7633b559cc36a1192f59bf1a7875e7f6329b9e1b authorMichał Sawicz <michal.sawicz@canonical.com> dateSat 16 Aug 2014, 17:07 (12 years ago) parent2ab9bc8
1 file changed+2−1
tests/qmltests/Dash/tst_Dash.qml+2−1
tests/qmltests/Dash/tst_Dash.qml+2−1
@@ -127,8 +127,9 @@ Item {
127127 tryCompare(scopes, "loaded", true);
128128 var dashContentList = findChild(dash, "dashContentList");
129129 tryCompare(dashContentList, "count", 6);
130+ tryCompareFunction(function() { return findChild(dash, "MockScope1 loader") != null; }, true);
130131 var mockScope1Loader = findChild(dash, "MockScope1 loader");
131− tryCompareFunction(function() { return mockScope1Loader.item != null; }, true);
132+ tryCompare(mockScope1Loader, "status", Loader.Ready);
132133
133134 // Show the overview
134135 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, dash.height - units.gu(18));