@@ -85,7 +85,10 @@ Item {
86 dash.setCurrentScope(data.tag, true /* animate */, false /* reset */);
86 dash.setCurrentScope(data.tag, true /* animate */, false /* reset */);
87 compare(dashContent.currentIndex, data.shouldBeVisible ? data.visualIndex : current_index);
87 compare(dashContent.currentIndex, data.shouldBeVisible ? data.visualIndex : current_index);
89+ var dashContentList = findChild(dash, "dashContentList");
88− compare(tabbar.selectedIndex, data.shouldBeVisible ? data.visualIndex : current_index);
90+ var expectedTitle = dashContentList.model.get(data.shouldBeVisible ? data.visualIndex : current_index).title
91+ compare(tabbar.title, expectedTitle);
91 function test_show_scope_on_load_data() {
94 function test_show_scope_on_load_data() {
@@ -109,26 +112,5 @@ Item {
109 verify(dashContentList != undefined);
112 verify(dashContentList != undefined);
110 tryCompare(dashContentList, "currentIndex", data.visualIndex);
113 tryCompare(dashContentList, "currentIndex", data.visualIndex);
113− function test_dash_bar_set_index_connection_data() {
114− return get_scope_data()
117− function test_dash_bar_set_index_connection(data) {
118− if (data.shouldBeVisible == false) {
119− console.log("Not testing " + data.tag + ": not visible");
122− // wait for scopes to load
123− tryCompare(scopes, "loaded", true);
125− var tabbar = findChild(dash, "tabbar");
126− verify(tabbar != undefined)
127− var dashContent = findChild(dash, "dashContent");
128− var current_index = dashContent.currentIndex;
130− tabbar.model.selectedIndex = data.visualIndex;
131− compare(dashContent.currentIndex, data.shouldBeVisible ? data.visualIndex : current_index);