@@ -98,7 +98,7 @@ Item {
9898 function scrollToCategory(categoryName) {
9999 var categoryListView = findChild(genericScopeView, "categoryListView");
100100 tryCompareFunction(function() {
101− var category = findChild(genericScopeView, categoryName);
101+ var category = findChild(genericScopeView, categoryName, 0 /* timeout */);
102102 if (category && category.y > 0 && category.y < genericScopeView.height) return true;
103103 touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20),
104104 genericScopeView.width/2, genericScopeView.y)
@@ -106,7 +106,7 @@ Item {
106106 return false;
107107 }, true);
108108
109− tryCompareFunction(function() { return findChild(genericScopeView, "delegate0") !== null; }, true);
109+ tryCompareFunction(function() { return findChild(genericScopeView, "delegate0", 0 /* timeout */) !== null; }, true);
110110 return findChild(genericScopeView, categoryName);
111111 }
112112
@@ -169,7 +169,7 @@ Item {
169169 }
170170
171171 function test_expand_collapse() {
172− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != null; }, true);
172+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0", 0 /* timeout */) != null; }, true);
173173
174174 var category = findChild(genericScopeView, "dashCategory0")
175175 var seeAll = findChild(category, "seeAll")
@@ -190,7 +190,7 @@ Item {
190190
191191 function test_expand_expand_collapse() {
192192 // wait for the item to be there
193− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2") != null; }, true);
193+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2", 0 /* timeout */) != null; }, true);
194194
195195 var categoryListView = findChild(genericScopeView, "categoryListView");
196196 categoryListView.contentY = categoryListView.height;
@@ -218,7 +218,6 @@ Item {
218218 }
219219
220220 function test_headerLink() {
221− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader1") != null; }, true);
222221 var header = findChild(genericScopeView, "dashSectionHeader1");
223222
224223 spy.target = genericScopeView.scope;
@@ -237,7 +236,7 @@ Item {
237236 categoryListView.contentY = categoryListView.height * 2;
238237
239238 // wait for the item to be there
240− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader4") != null; }, true);
239+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader4", 0 /* timeout */) != null; }, true);
241240
242241 var categoryView = findChild(genericScopeView, "dashCategory4");
243242 verify(categoryView, "Can't find the category view.");
@@ -249,7 +248,6 @@ Item {
249248 }
250249
251250 function test_narrow_delegate_ranges_expand() {
252− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") !== null; }, true);
253251 var category = findChild(genericScopeView, "dashCategory0")
254252 tryCompare(category, "expanded", false);
255253
@@ -281,7 +279,6 @@ Item {
281279 function test_single_category_expansion() {
282280 genericScopeView.scope = scopes.getScope(3);
283281
284− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") != undefined; }, true);
285282 var category = findChild(genericScopeView, "dashCategory0")
286283 compare(category.expandable, false, "Only category should not be expandable.");
287284
@@ -295,9 +292,9 @@ Item {
295292 if (category === undefined) category = 0;
296293 if (delegate === undefined) delegate = 0;
297294 tryCompareFunction(function() {
298− var cardGrid = findChild(genericScopeView, "dashCategory"+category);
295+ var cardGrid = findChild(genericScopeView, "dashCategory"+category, 0 /* timeout */);
299296 if (cardGrid != null) {
300− var tile = findChild(cardGrid, "delegate"+delegate);
297+ var tile = findChild(cardGrid, "delegate"+delegate, 0 /* timeout */);
301298 return tile != null;
302299 }
303300 return false;
@@ -338,9 +335,9 @@ Item {
338335 genericScopeView.scope = scopes.getScope("NullPreviewScope");
339336
340337 tryCompareFunction(function() {
341− var cardGrid = findChild(genericScopeView, 0);
338+ var cardGrid = findChild(genericScopeView, 0, 0 /* timeout */);
342339 if (cardGrid != null) {
343− var tile = findChild(cardGrid, 0);
340+ var tile = findChild(cardGrid, 0, 0 /* timeout */);
344341 return tile != null;
345342 }
346343 return false;
@@ -391,7 +388,6 @@ Item {
391388
392389 tryCompare(testCase.subPageLoader, "open", false);
393390
394− tryCompareFunction(function() { return findChild(category, "delegate1") != null; }, true);
395391 var tile = findChild(category, "delegate1");
396392
397393 mouseClick(tile);
@@ -493,7 +489,6 @@ Item {
493489
494490 scrollToEnd();
495491
496− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory1") !== null; }, true);
497492 var category1 = findChild(genericScopeView, "dashCategory1")
498493 var seeAll1 = findChild(category1, "seeAll")
499494 verify(category1.expandable);
@@ -672,7 +667,6 @@ Item {
672667 function test_carousel_borderSource() {
673668 var category = scrollToCategory("dashCategory1");
674669 var tile = findChild(category, "carouselDelegate0");
675− tryCompareFunction(function() { return findChild(tile, "artShapeLoader") !== null; }, true);
676670 var artShapeLoader = findChild(tile, "artShapeLoader");
677671 var shape = findChildsByType(artShapeLoader, "UCUbuntuShape");
678672 compare(shape.borderSource, undefined);