@@ -59,9 +59,9 @@ Item {
5959 function get_scope_data() {
6060 return [
6161 { tag: "MockScope1", visualIndex: 0 },
62− { tag: "MockScope2", visualIndex: 1 },
63− { tag: "clickscope", visualIndex: 2 },
64− { tag: "MockScope5", visualIndex: 3 },
62+ { tag: "MockScope2", visualIndex: -1 },
63+ { tag: "clickscope", visualIndex: 1 },
64+ { tag: "MockScope5", visualIndex: 2 },
6565 ]
6666 }
6767
@@ -80,7 +80,14 @@ Item {
8080 tryCompare(dashContentList, "count", 6);
8181
8282 verify(dashContentList != undefined);
83− tryCompare(dashContentList, "currentIndex", data.visualIndex);
83+ if (data.visualIndex == -1) {
84+ tryCompare(dashContentList, "currentIndex", 0);
85+ expectFail(data.tag, "non favorite scopes should not be visble in the scopes model");
86+ compare(dashContentList.currentItem.scopeId, data.tag); // this should fail
87+ } else {
88+ tryCompare(dashContentList, "currentIndex", data.visualIndex);
89+ compare(dashContentList.currentItem.scopeId, data.tag);
90+ }
8491 }
8592
8693 function test_dash_overview_show_select_same_favorite() {