on xenial help sign in
Account for reordering of scopes in the mock scopes
commit7051a344d0d5fca19a9642e724051d42e418b5b0 authorAlbert Astals <albert.astals@canonical.com> dateTue 7 Oct 2014, 15:57 (12 years ago) parentfb99a0f
1 file changed+6−6
tests/qmltests/Dash/tst_DashContent.qml+6−6
tests/qmltests/Dash/tst_DashContent.qml+6−6
@@ -131,7 +131,7 @@ Item {
131131 function test_show_header_on_list_movement() {
132132 var dashContentList = findChild(dashContent, "dashContentList");
133133 verify(dashContentList !== null);
134− var scope = findChild(dashContent, "MockScope1 loader");
134+ var scope = findChild(dashContent, "clickscope loader");
135135 waitForRendering(scope);
136136
137137 var categoryListView = findChild(scope, "categoryListView");
@@ -149,19 +149,19 @@ Item {
149149 function test_set_current_scope_reset() {
150150 var dashContentList = findChild(dashContent, "dashContentList");
151151 verify(dashContentList, "Couldn't find dashContentList");
152− var scope = findChild(dashContent, "MockScope1 loader");
152+ var scope = findChild(dashContent, "clickscope loader");
153153
154154 tryCompare(scope, "status", Loader.Ready);
155155
156156 var categoryListView = findChild(dashContentList, "categoryListView");
157157 categoryListView.contentY = units.gu(10);
158158
159− compare(dashContentList.currentItem.item.objectName, "MockScope1")
159+ compare(dashContentList.currentItem.item.objectName, "clickscope")
160160 compare(categoryListView.contentY, units.gu(10));
161161
162162 dashContent.setCurrentScopeAtIndex(0, false, true);
163163
164− compare(dashContentList.currentItem.item.objectName, "MockScope1")
164+ compare(dashContentList.currentItem.item.objectName, "clickscope")
165165 compare(categoryListView.contentY, 0);
166166 }
167167
@@ -199,8 +199,8 @@ Item {
199199
200200 function test_scope_mapping_data() {
201201 return [
202− {tag: "index0", index: 0, objectName: "MockScope1"},
203− {tag: "index1", index: 1, objectName: "clickscope"},
202+ {tag: "index0", index: 0, objectName: "clickscope"},
203+ {tag: "index1", index: 1, objectName: "MockScope1"},
204204 {tag: "index2", index: 2, objectName: "MockScope5"},
205205 {tag: "index3", index: 3, objectName: "SingleCategoryScope"}
206206 ]