@@ -92,7 +92,7 @@ Item {
9292 function scrollToCategory(categoryName) {
9393 var categoryListView = findChild(genericScopeView, "categoryListView");
9494 tryCompareFunction(function() {
95− var category = findChild(genericScopeView, categoryName);
95+ var category = findChild(genericScopeView, categoryName, 0 /* timeout */);
9696 if (category && category.y > 0 && category.y < genericScopeView.height) return true;
9797 touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20),
9898 genericScopeView.width/2, genericScopeView.y)
@@ -100,7 +100,7 @@ Item {
100100 return false;
101101 }, true);
102102
103− tryCompareFunction(function() { return findChild(genericScopeView, "delegate0") !== null; }, true);
103+ tryCompareFunction(function() { return findChild(genericScopeView, "delegate0", 0 /* timeout */) !== null; }, true);
104104 return findChild(genericScopeView, categoryName);
105105 }
106106
@@ -163,7 +163,7 @@ Item {
163163 }
164164
165165 function test_expand_collapse() {
166− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != null; }, true);
166+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0", 0 /* timeout */) != null; }, true);
167167
168168 var category = findChild(genericScopeView, "dashCategory0")
169169 var seeAll = findChild(category, "seeAll")
@@ -184,7 +184,7 @@ Item {
184184
185185 function test_expand_expand_collapse() {
186186 // wait for the item to be there
187− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2") != null; }, true);
187+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader2", 0 /* timeout */) != null; }, true);
188188
189189 var categoryListView = findChild(genericScopeView, "categoryListView");
190190 categoryListView.contentY = categoryListView.height;
@@ -212,7 +212,6 @@ Item {
212212 }
213213
214214 function test_headerLink() {
215− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader1") != null; }, true);
216215 var header = findChild(genericScopeView, "dashSectionHeader1");
217216
218217 spy.target = genericScopeView.scope;
@@ -231,7 +230,7 @@ Item {
231230 categoryListView.contentY = categoryListView.height * 2;
232231
233232 // wait for the item to be there
234− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader4") != null; }, true);
233+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader4", 0 /* timeout */) != null; }, true);
235234
236235 var categoryView = findChild(genericScopeView, "dashCategory4");
237236 verify(categoryView, "Can't find the category view.");
@@ -243,7 +242,6 @@ Item {
243242 }
244243
245244 function test_narrow_delegate_ranges_expand() {
246− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") !== null; }, true);
247245 var category = findChild(genericScopeView, "dashCategory0")
248246 tryCompare(category, "expanded", false);
249247
@@ -275,7 +273,6 @@ Item {
275273 function test_single_category_expansion() {
276274 genericScopeView.scope = scopes.getScope(3);
277275
278− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") != undefined; }, true);
279276 var category = findChild(genericScopeView, "dashCategory0")
280277 compare(category.expandable, false, "Only category should not be expandable.");
281278
@@ -289,9 +286,9 @@ Item {
289286 if (category === undefined) category = 0;
290287 if (delegate === undefined) delegate = 0;
291288 tryCompareFunction(function() {
292− var cardGrid = findChild(genericScopeView, "dashCategory"+category);
289+ var cardGrid = findChild(genericScopeView, "dashCategory"+category, 0 /* timeout */);
293290 if (cardGrid != null) {
294− var tile = findChild(cardGrid, "delegate"+delegate);
291+ var tile = findChild(cardGrid, "delegate"+delegate, 0 /* timeout */);
295292 return tile != null;
296293 }
297294 return false;
@@ -332,9 +329,9 @@ Item {
332329 genericScopeView.scope = scopes.getScope("NullPreviewScope");
333330
334331 tryCompareFunction(function() {
335− var cardGrid = findChild(genericScopeView, 0);
332+ var cardGrid = findChild(genericScopeView, 0, 0 /* timeout */);
336333 if (cardGrid != null) {
337− var tile = findChild(cardGrid, 0);
334+ var tile = findChild(cardGrid, 0, 0 /* timeout */);
338335 return tile != null;
339336 }
340337 return false;
@@ -385,7 +382,6 @@ Item {
385382
386383 tryCompare(testCase.subPageLoader, "open", false);
387384
388− tryCompareFunction(function() { return findChild(category, "delegate1") != null; }, true);
389385 var tile = findChild(category, "delegate1");
390386
391387 mouseClick(tile);
@@ -487,7 +483,6 @@ Item {
487483
488484 scrollToEnd();
489485
490− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory1") !== null; }, true);
491486 var category1 = findChild(genericScopeView, "dashCategory1")
492487 var seeAll1 = findChild(category1, "seeAll")
493488 verify(category1.expandable);
@@ -669,7 +664,6 @@ Item {
669664 function test_carousel_borderSource() {
670665 var category = scrollToCategory("dashCategory1");
671666 var tile = findChild(category, "carouselDelegate0");
672− tryCompareFunction(function() { return findChild(tile, "artShapeLoader") !== null; }, true);
673667 var artShapeLoader = findChild(tile, "artShapeLoader");
674668 var shape = findChildsByType(artShapeLoader, "UCUbuntuShape");
675669 compare(shape.borderSource, undefined);