on xenial help sign in
remove these console.log i forgot
1855b1dAlbert Astals
tests/qmltests/Dash/tst_DashContent.qml−9
@@ -274,7 +274,6 @@ Item {
274 }
274 }
275
275
276 function doFindMusicButton(parent) {
276 function doFindMusicButton(parent) {
277− console.log("P", parent);
278 for (var i = 0; i < parent.children.length; i++) {
277 for (var i = 0; i < parent.children.length; i++) {
279 var c = parent.children[i];
278 var c = parent.children[i];
280 if (UT.Util.isInstanceOf(c, "AbstractButton") && parent.x >= 0) {
279 if (UT.Util.isInstanceOf(c, "AbstractButton") && parent.x >= 0) {
@@ -301,18 +300,14 @@ Item {
301 }
300 }
302
301
303 function test_tabBar_index_change() {
302 function test_tabBar_index_change() {
304− console.log("A");
305 tryCompare(scopesModel, "loaded", true);
303 tryCompare(scopesModel, "loaded", true);
306 var tabbar = findChild(dashContent, "tabbar");
304 var tabbar = findChild(dashContent, "tabbar");
307− console.log("B", tabbar);
308
305
309 compare(dashContent.currentIndex, 0);
306 compare(dashContent.currentIndex, 0);
310 tryCompare(tabbar, "selectedIndex", 0);
307 tryCompare(tabbar, "selectedIndex", 0);
311 tryCompare(tabbar, "selectionMode", false);
308 tryCompare(tabbar, "selectionMode", false);
312− console.log("C");
313
309
314 mouseClick(tabbar, units.gu(5), units.gu(5))
310 mouseClick(tabbar, units.gu(5), units.gu(5))
315− console.log("D");
316
311
317 tryCompare(tabbar, "selectionMode", true);
312 tryCompare(tabbar, "selectionMode", true);
318 tryCompare(tabbar, "selectedIndex", 0);
313 tryCompare(tabbar, "selectedIndex", 0);
@@ -320,13 +315,9 @@ Item {
320
315
321 var button;
316 var button;
322 tryCompareFunction(function() { button = findMusicButton(); return button != undefined; }, true);
317 tryCompareFunction(function() { button = findMusicButton(); return button != undefined; }, true);
323− console.log("E", button);
324 waitForRendering(button);
318 waitForRendering(button);
325
319
326− console.log("F");
327−
328 mouseClick(button, button.width / 2, button.height / 2)
320 mouseClick(button, button.width / 2, button.height / 2)
329− console.log("G");
330
321
331 tryCompare(tabbar, "selectionMode", false);
322 tryCompare(tabbar, "selectionMode", false);
332 tryCompare(tabbar, "selectedIndex", 1);
323 tryCompare(tabbar, "selectedIndex", 1);