on xenial help sign in
debug--
19f13dfAlbert Astals Cid
tests/qmltests/Dash/tst_Dash.qml−7
@@ -303,32 +303,25 @@ Item {
303 }
303 }
304
304
305 function test_manage_dash_store_no_favorites() {
305 function test_manage_dash_store_no_favorites() {
306− console.log("A");
307 // Show the manage dash
306 // Show the manage dash
308 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));
307 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));
309 var bottomEdgeController = findInvisibleChild(dash, "bottomEdgeController");
308 var bottomEdgeController = findInvisibleChild(dash, "bottomEdgeController");
310 tryCompare(bottomEdgeController, "progress", 1);
309 tryCompare(bottomEdgeController, "progress", 1);
311
310
312− console.log("B");
313 // clear the favorite scopes
311 // clear the favorite scopes
314 scopes.clearFavorites();
312 scopes.clearFavorites();
315 var dashContentList = findChild(dash, "dashContentList");
313 var dashContentList = findChild(dash, "dashContentList");
316 tryCompare(dashContentList, "count", 0);
314 tryCompare(dashContentList, "count", 0);
317
315
318− console.log("C");
319 var scopesList = findChild(dash, "scopesList");
316 var scopesList = findChild(dash, "scopesList");
320 spy.target = scopesList.scope;
317 spy.target = scopesList.scope;
321 spy.signalName = "queryPerformed";
318 spy.signalName = "queryPerformed";
322
319
323− console.log("D");
324 // Click on the store
320 // Click on the store
325 var scopesListPageHeader = findChild(scopesList, "pageHeader");
321 var scopesListPageHeader = findChild(scopesList, "pageHeader");
326 var searchButton = findChild(scopesListPageHeader, "store_action_button");
322 var searchButton = findChild(scopesListPageHeader, "store_action_button");
327− console.log("D", searchButton, scopesListPageHeader);
328− wait(1000);
329 mouseClick(searchButton);
323 mouseClick(searchButton);
330
324
331− console.log("E");
332 spy.wait();
325 spy.wait();
333 compare(spy.signalArguments[0][0], "scope://com.canonical.scopes.clickstore");
326 compare(spy.signalArguments[0][0], "scope://com.canonical.scopes.clickstore");
334 tryCompare(bottomEdgeController, "progress", 0);
327 tryCompare(bottomEdgeController, "progress", 0);