@@ -92,7 +92,7 @@ Item {
92 function scrollToCategory(categoryName) {
92 function scrollToCategory(categoryName) {
93 var categoryListView = findChild(genericScopeView, "categoryListView");
93 var categoryListView = findChild(genericScopeView, "categoryListView");
94 tryCompareFunction(function() {
94 tryCompareFunction(function() {
95− var category = findChild(genericScopeView, categoryName);
95+ var category = findChild(genericScopeView, categoryName, 0 /* timeout */);
96 if (category && category.y > 0 && category.y < genericScopeView.height) return true;
96 if (category && category.y > 0 && category.y < genericScopeView.height) return true;
97 touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20),
97 touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20),
98 genericScopeView.width/2, genericScopeView.y)
98 genericScopeView.width/2, genericScopeView.y)
@@ -100,7 +100,7 @@ Item {
100 return false;
100 return false;
101 }, true);
101 }, true);
103− tryCompareFunction(function() { return findChild(genericScopeView, "delegate0") !== null; }, true);
103+ tryCompareFunction(function() { return findChild(genericScopeView, "delegate0", 0 /* timeout */) !== null; }, true);
104 return findChild(genericScopeView, categoryName);
104 return findChild(genericScopeView, categoryName);
@@ -163,7 +163,7 @@ Item {
165 function test_expand_collapse() {
165 function test_expand_collapse() {
166− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != null; }, true);
166+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0", 0 /* timeout */) != null; }, true);
168 var category = findChild(genericScopeView, "dashCategory0")
168 var category = findChild(genericScopeView, "dashCategory0")
169 var seeAll = findChild(category, "seeAll")
169 var seeAll = findChild(category, "seeAll")
@@ -184,7 +184,7 @@ Item {
185 function test_expand_expand_collapse() {
185 function test_expand_expand_collapse() {
186 // wait for the item to be there
186 // 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);
189 var categoryListView = findChild(genericScopeView, "categoryListView");
189 var categoryListView = findChild(genericScopeView, "categoryListView");
190 categoryListView.contentY = categoryListView.height;
190 categoryListView.contentY = categoryListView.height;
@@ -212,7 +212,6 @@ Item {
214 function test_headerLink() {
214 function test_headerLink() {
215− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader1") != null; }, true);
216 var header = findChild(genericScopeView, "dashSectionHeader1");
215 var header = findChild(genericScopeView, "dashSectionHeader1");
218 spy.target = genericScopeView.scope;
217 spy.target = genericScopeView.scope;
@@ -231,7 +230,7 @@ Item {
231 categoryListView.contentY = categoryListView.height * 2;
230 categoryListView.contentY = categoryListView.height * 2;
233 // wait for the item to be there
232 // 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);
236 var categoryView = findChild(genericScopeView, "dashCategory4");
235 var categoryView = findChild(genericScopeView, "dashCategory4");
237 verify(categoryView, "Can't find the category view.");
236 verify(categoryView, "Can't find the category view.");
@@ -243,7 +242,6 @@ Item {
245 function test_narrow_delegate_ranges_expand() {
244 function test_narrow_delegate_ranges_expand() {
246− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") !== null; }, true);
247 var category = findChild(genericScopeView, "dashCategory0")
245 var category = findChild(genericScopeView, "dashCategory0")
248 tryCompare(category, "expanded", false);
246 tryCompare(category, "expanded", false);
@@ -275,7 +273,6 @@ Item {
275 function test_single_category_expansion() {
273 function test_single_category_expansion() {
276 genericScopeView.scope = scopes.getScope(3);
274 genericScopeView.scope = scopes.getScope(3);
278− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") != undefined; }, true);
279 var category = findChild(genericScopeView, "dashCategory0")
276 var category = findChild(genericScopeView, "dashCategory0")
280 compare(category.expandable, false, "Only category should not be expandable.");
277 compare(category.expandable, false, "Only category should not be expandable.");
@@ -289,9 +286,9 @@ Item {
289 if (category === undefined) category = 0;
286 if (category === undefined) category = 0;
290 if (delegate === undefined) delegate = 0;
287 if (delegate === undefined) delegate = 0;
291 tryCompareFunction(function() {
288 tryCompareFunction(function() {
292− var cardGrid = findChild(genericScopeView, "dashCategory"+category);
289+ var cardGrid = findChild(genericScopeView, "dashCategory"+category, 0 /* timeout */);
293 if (cardGrid != null) {
290 if (cardGrid != null) {
294− var tile = findChild(cardGrid, "delegate"+delegate);
291+ var tile = findChild(cardGrid, "delegate"+delegate, 0 /* timeout */);
295 return tile != null;
292 return tile != null;
297 return false;
294 return false;
@@ -332,9 +329,9 @@ Item {
332 genericScopeView.scope = scopes.getScope("NullPreviewScope");
329 genericScopeView.scope = scopes.getScope("NullPreviewScope");
334 tryCompareFunction(function() {
331 tryCompareFunction(function() {
335− var cardGrid = findChild(genericScopeView, 0);
332+ var cardGrid = findChild(genericScopeView, 0, 0 /* timeout */);
336 if (cardGrid != null) {
333 if (cardGrid != null) {
337− var tile = findChild(cardGrid, 0);
334+ var tile = findChild(cardGrid, 0, 0 /* timeout */);
338 return tile != null;
335 return tile != null;
340 return false;
337 return false;
@@ -385,7 +382,6 @@ Item {
386 tryCompare(testCase.subPageLoader, "open", false);
383 tryCompare(testCase.subPageLoader, "open", false);
388− tryCompareFunction(function() { return findChild(category, "delegate1") != null; }, true);
389 var tile = findChild(category, "delegate1");
385 var tile = findChild(category, "delegate1");
391 mouseClick(tile);
387 mouseClick(tile);
@@ -487,7 +483,6 @@ Item {
488 scrollToEnd();
484 scrollToEnd();
490− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory1") !== null; }, true);
491 var category1 = findChild(genericScopeView, "dashCategory1")
486 var category1 = findChild(genericScopeView, "dashCategory1")
492 var seeAll1 = findChild(category1, "seeAll")
487 var seeAll1 = findChild(category1, "seeAll")
493 verify(category1.expandable);
488 verify(category1.expandable);
@@ -669,7 +664,6 @@ Item {
669 function test_carousel_borderSource() {
664 function test_carousel_borderSource() {
670 var category = scrollToCategory("dashCategory1");
665 var category = scrollToCategory("dashCategory1");
671 var tile = findChild(category, "carouselDelegate0");
666 var tile = findChild(category, "carouselDelegate0");
672− tryCompareFunction(function() { return findChild(tile, "artShapeLoader") !== null; }, true);
673 var artShapeLoader = findChild(tile, "artShapeLoader");
667 var artShapeLoader = findChild(tile, "artShapeLoader");
674 var shape = findChildsByType(artShapeLoader, "UCUbuntuShape");
668 var shape = findChildsByType(artShapeLoader, "UCUbuntuShape");
675 compare(shape.borderSource, undefined);
669 compare(shape.borderSource, undefined);