on xenial help sign in
Add some debugs, try to find out why it's crashing
d7f5fb0Albert Astals
tests/qmltests/Dash/tst_DashContent.qml+7
@@ -274,14 +274,18 @@ Item {
274 }
274 }
275
275
276 function test_tabBar_index_change() {
276 function test_tabBar_index_change() {
277+ console.log("A");
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);
279
281
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);
285+ console.log("C");
283
286
284 mouseClick(tabbar, units.gu(5), units.gu(5))
287 mouseClick(tabbar, units.gu(5), units.gu(5))
288+ console.log("D");
285
289
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 {
293 } else {
297 } else {
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];
295 }
299 }
300+ console.log("E", button0);
296 waitForRendering(button0);
301 waitForRendering(button0);
297
302
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");
306+ console.log("F");
301
307
302 mouseClick(button0, button0.width / 2, button0.height / 2)
308 mouseClick(button0, button0.width / 2, button0.height / 2)
309+ console.log("G");
303
310
304 tryCompare(tabbar, "selectionMode", false);
311 tryCompare(tabbar, "selectionMode", false);
305 tryCompare(tabbar, "selectedIndex", 1);
312 tryCompare(tabbar, "selectedIndex", 1);