@@ -64,10 +64,10 @@ Item {
65 function get_scope_data() {
65 function get_scope_data() {
67− { tag: "MockScope1", visualIndex: 0, shouldBeVisible: true },
67+ { tag: "MockScope1", visualIndex: 0 },
68− { tag: "MockScope2", visualIndex: -1, shouldBeVisible: false },
68+ { tag: "MockScope2", visualIndex: 1 },
69− { tag: "clickscope", visualIndex: 1, shouldBeVisible: true },
69+ { tag: "clickscope", visualIndex: 2 },
70− { tag: "MockScope5", visualIndex: 2, shouldBeVisible: true },
70+ { tag: "MockScope5", visualIndex: 3 },
@@ -76,10 +76,6 @@ Item {
78 function test_show_scope_on_load(data) {
78 function test_show_scope_on_load(data) {
79− if (data.shouldBeVisible == false) {
80− console.log("Not testing " + data.tag + ": not visible");
83 var dashContentList = findChild(dash, "dashContentList");
79 var dashContentList = findChild(dash, "dashContentList");
85 dash.showScopeOnLoaded = data.tag
81 dash.showScopeOnLoaded = data.tag
@@ -87,7 +83,7 @@ Item {
87 tryCompare(dashContentList, "count", 0);
83 tryCompare(dashContentList, "count", 0);
88 scopes.load();
84 scopes.load();
89 tryCompare(scopes, "loaded", true);
85 tryCompare(scopes, "loaded", true);
90− tryCompare(dashContentList, "count", 4);
86+ tryCompare(dashContentList, "count", 5);
92 verify(dashContentList != undefined);
88 verify(dashContentList != undefined);
93 tryCompare(dashContentList, "currentIndex", data.visualIndex);
89 tryCompare(dashContentList, "currentIndex", data.visualIndex);