@@ -274,14 +274,18 @@ Item {
276 function test_tabBar_index_change() {
276 function test_tabBar_index_change() {
277 tryCompare(scopesModel, "loaded", true);
278 tryCompare(scopesModel, "loaded", true);
278 var tabbar = findChild(dashContent, "tabbar");
279 var tabbar = findChild(dashContent, "tabbar");
280+ console.log("B", tabbar);
280 compare(dashContent.currentIndex, 0);
282 compare(dashContent.currentIndex, 0);
281 tryCompare(tabbar, "selectedIndex", 0);
283 tryCompare(tabbar, "selectedIndex", 0);
282 tryCompare(tabbar, "selectionMode", false);
284 tryCompare(tabbar, "selectionMode", false);
284 mouseClick(tabbar, units.gu(5), units.gu(5))
287 mouseClick(tabbar, units.gu(5), units.gu(5))
286 tryCompare(tabbar, "selectionMode", true);
290 tryCompare(tabbar, "selectionMode", true);
287 tryCompare(tabbar, "selectedIndex", 0);
291 tryCompare(tabbar, "selectedIndex", 0);
@@ -293,13 +297,16 @@ Item {
294 button0 = tabbar.children[0].children[0].children[0].children[2].children[1];
298 button0 = tabbar.children[0].children[0].children[0].children[2].children[1];
300+ console.log("E", button0);
296 waitForRendering(button0);
301 waitForRendering(button0);
298 UT.Util.isInstanceOf(button0, "AbstractButton");
303 UT.Util.isInstanceOf(button0, "AbstractButton");
299 UT.Util.isInstanceOf(button0.children[3], "Label");
304 UT.Util.isInstanceOf(button0.children[3], "Label");
300 tryCompare(button0.children[3], "text", "Music");
305 tryCompare(button0.children[3], "text", "Music");
302 mouseClick(button0, button0.width / 2, button0.height / 2)
308 mouseClick(button0, button0.width / 2, button0.height / 2)
304 tryCompare(tabbar, "selectionMode", false);
311 tryCompare(tabbar, "selectionMode", false);
305 tryCompare(tabbar, "selectedIndex", 1);
312 tryCompare(tabbar, "selectedIndex", 1);