@@ -278,13 +278,29 @@ Item {
278278 var tabbar = findChild(dashContent, "tabbar");
279279
280280 compare(dashContent.currentIndex, 0);
281+ tryCompare(tabbar, "selectedIndex", 0);
281282 tryCompare(tabbar, "selectionMode", false);
283+
282284 mouseClick(tabbar, units.gu(5), units.gu(5))
285+
283286 tryCompare(tabbar, "selectionMode", true);
284− var button0 = tabbar.children[0].children[0].children[0].children[2].children[1];
287+ tryCompare(tabbar, "selectedIndex", 0);
288+ tryCompare(dashContent, "currentIndex", 0);
289+
290+ var button0;
291+ if (tabbar.children[0].children[0].children[0].children[1].x >= 0) {
292+ button0 = tabbar.children[0].children[0].children[0].children[1].children[1];
293+ } else {
294+ button0 = tabbar.children[0].children[0].children[0].children[2].children[1];
295+ }
285296 waitForRendering(button0);
297+
298+ UT.Util.isInstanceOf(button0, "AbstractButton");
299+ UT.Util.isInstanceOf(button0.children[3], "Label");
286300 tryCompare(button0.children[3], "text", "Music");
301+
287302 mouseClick(button0, button0.width / 2, button0.height / 2)
303+
288304 tryCompare(tabbar, "selectionMode", false);
289305 tryCompare(tabbar, "selectedIndex", 1);
290306 tryCompare(dashContent, "currentIndex", 1);