@@ -36,7 +36,6 @@ Item {
38 anchors.fill: parent
38 anchors.fill: parent
39− showScopeOnLoaded: "MockScope2"
42 UT.UnityTestCase {
41 UT.UnityTestCase {
@@ -80,27 +79,6 @@ Item {
80 return get_scope_data()
79 return get_scope_data()
83− function test_show_scope_on_load(data) {
84− var dashContentList = findChild(dash, "dashContentList");
86− dash.showScopeOnLoaded = data.tag
88− tryCompare(dashContentList, "count", 0);
90− tryCompare(scopes, "loaded", true);
91− tryCompare(dashContentList, "count", 6);
93− verify(dashContentList != undefined);
94− if (data.visualIndex == -1) {
95− tryCompare(dashContentList, "currentIndex", 0);
96− expectFail(data.tag, "non favorite scopes should not be visble in the scopes model");
97− compare(dashContentList.currentItem.scopeId, data.tag); // this should fail
99− tryCompare(dashContentList, "currentIndex", data.visualIndex);
100− compare(dashContentList.currentItem.scopeId, data.tag);
104 function test_dash_overview_show_select_same_favorite() {
82 function test_dash_overview_show_select_same_favorite() {
105 // Show the overview
83 // Show the overview
106 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, dash.height - units.gu(18));
84 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, dash.height - units.gu(18));
@@ -314,7 +292,9 @@ Item {
314 mouseFlick(dash, startX, startY, stopX, stopY);
292 mouseFlick(dash, startX, startY, stopX, stopY);
315 compare(dashContentList.currentIndex, 2, "Could not flick to scope id 2");
293 compare(dashContentList.currentIndex, 2, "Could not flick to scope id 2");
316 var dashCommunicatorService = findInvisibleChild(dash, "dashCommunicatorService");
294 var dashCommunicatorService = findInvisibleChild(dash, "dashCommunicatorService");
317− dashCommunicatorService.mockSetCurrentScope("clickscope", true, false);
295+ dashCommunicatorService.mockSetCurrentScope(0, true, false);
296+ tryCompare(dashContentList, "currentIndex", 0)
297+ dashCommunicatorService.mockSetCurrentScope(1, true, false);
318 tryCompare(dashContentList, "currentIndex", 1)
298 tryCompare(dashContentList, "currentIndex", 1)