@@ -61,6 +61,11 @@ Item {
61 signalName: "movementStarted"
61 signalName: "movementStarted"
64 UT.UnityTestCase {
69 UT.UnityTestCase {
65 name: "DashContent"
70 name: "DashContent"
66 when: scopesModel.loaded && windowShown
71 when: scopesModel.loaded && windowShown
@@ -78,6 +83,7 @@ Item {
79 function cleanup() {
84 function cleanup() {
80 movementStartedSpy.clear();
85 movementStartedSpy.clear();
81 dashContent.visible = true;
87 dashContent.visible = true;
83 var dashContentList = findChild(dashContent, "dashContentList");
89 var dashContentList = findChild(dashContent, "dashContentList");
@@ -135,13 +141,12 @@ Item {
136 function test_set_current_scope_reset() {
142 function test_set_current_scope_reset() {
137 var dashContentList = findChild(dashContent, "dashContentList");
143 var dashContentList = findChild(dashContent, "dashContentList");
138− verify(dashContentList != undefined);
144+ verify(dashContentList, "Couldn't find dashContentList");
139 var scope = findChild(dashContent, "MockScope1 loader");
145 var scope = findChild(dashContent, "MockScope1 loader");
140− waitForRendering(scope);
142− var categoryListView = findChild(dashContentList, "categoryListView");
147+ tryCompare(scope, "status", Loader.Ready);
143− waitForRendering(categoryListView);
149+ var categoryListView = findChild(dashContentList, "categoryListView");
145 categoryListView.contentY = units.gu(10);
150 categoryListView.contentY = units.gu(10);
147 compare(dashContentList.currentItem.item.objectName, "MockScope1")
152 compare(dashContentList.currentItem.item.objectName, "MockScope1")