@@ -98,7 +98,7 @@ Item {
98 function scrollToCategory(categoryName) {
98 function scrollToCategory(categoryName) {
99 var categoryListView = findChild(genericScopeView, "categoryListView");
99 var categoryListView = findChild(genericScopeView, "categoryListView");
100 tryCompareFunction(function() {
100 tryCompareFunction(function() {
101− var category = findChild(genericScopeView, categoryName);
101+ var category = findChild(genericScopeView, categoryName, 0 /* timeout */);
102 if (category && category.y > 0 && category.y < genericScopeView.height) return true;
102 if (category && category.y > 0 && category.y < genericScopeView.height) return true;
103 touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20),
103 touchFlick(genericScopeView, genericScopeView.width/2, units.gu(20),
104 genericScopeView.width/2, genericScopeView.y)
104 genericScopeView.width/2, genericScopeView.y)
@@ -106,7 +106,7 @@ Item {
106 return false;
106 return false;
107 }, true);
107 }, true);
109− tryCompareFunction(function() { return findChild(genericScopeView, "delegate0") !== null; }, true);
109+ tryCompareFunction(function() { return findChild(genericScopeView, "delegate0", 0 /* timeout */) !== null; }, true);
110 return findChild(genericScopeView, categoryName);
110 return findChild(genericScopeView, categoryName);
@@ -169,7 +169,7 @@ Item {
171 function test_expand_collapse() {
171 function test_expand_collapse() {
172− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0") != null; }, true);
172+ tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader0", 0 /* timeout */) != null; }, true);
174 var category = findChild(genericScopeView, "dashCategory0")
174 var category = findChild(genericScopeView, "dashCategory0")
175 var seeAll = findChild(category, "seeAll")
175 var seeAll = findChild(category, "seeAll")
@@ -190,7 +190,7 @@ Item {
191 function test_expand_expand_collapse() {
191 function test_expand_expand_collapse() {
192 // wait for the item to be there
192 // 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);
195 var categoryListView = findChild(genericScopeView, "categoryListView");
195 var categoryListView = findChild(genericScopeView, "categoryListView");
196 categoryListView.contentY = categoryListView.height;
196 categoryListView.contentY = categoryListView.height;
@@ -218,7 +218,6 @@ Item {
220 function test_headerLink() {
220 function test_headerLink() {
221− tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeader1") != null; }, true);
222 var header = findChild(genericScopeView, "dashSectionHeader1");
221 var header = findChild(genericScopeView, "dashSectionHeader1");
224 spy.target = genericScopeView.scope;
223 spy.target = genericScopeView.scope;
@@ -237,7 +236,7 @@ Item {
237 categoryListView.contentY = categoryListView.height * 2;
236 categoryListView.contentY = categoryListView.height * 2;
239 // wait for the item to be there
238 // 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);
242 var categoryView = findChild(genericScopeView, "dashCategory4");
241 var categoryView = findChild(genericScopeView, "dashCategory4");
243 verify(categoryView, "Can't find the category view.");
242 verify(categoryView, "Can't find the category view.");
@@ -249,7 +248,6 @@ Item {
251 function test_narrow_delegate_ranges_expand() {
250 function test_narrow_delegate_ranges_expand() {
252− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") !== null; }, true);
253 var category = findChild(genericScopeView, "dashCategory0")
251 var category = findChild(genericScopeView, "dashCategory0")
254 tryCompare(category, "expanded", false);
252 tryCompare(category, "expanded", false);
@@ -281,7 +279,6 @@ Item {
281 function test_single_category_expansion() {
279 function test_single_category_expansion() {
282 genericScopeView.scope = scopes.getScope(3);
280 genericScopeView.scope = scopes.getScope(3);
284− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") != undefined; }, true);
285 var category = findChild(genericScopeView, "dashCategory0")
282 var category = findChild(genericScopeView, "dashCategory0")
286 compare(category.expandable, false, "Only category should not be expandable.");
283 compare(category.expandable, false, "Only category should not be expandable.");
@@ -295,9 +292,9 @@ Item {
295 if (category === undefined) category = 0;
292 if (category === undefined) category = 0;
296 if (delegate === undefined) delegate = 0;
293 if (delegate === undefined) delegate = 0;
297 tryCompareFunction(function() {
294 tryCompareFunction(function() {
298− var cardGrid = findChild(genericScopeView, "dashCategory"+category);
295+ var cardGrid = findChild(genericScopeView, "dashCategory"+category, 0 /* timeout */);
299 if (cardGrid != null) {
296 if (cardGrid != null) {
300− var tile = findChild(cardGrid, "delegate"+delegate);
297+ var tile = findChild(cardGrid, "delegate"+delegate, 0 /* timeout */);
301 return tile != null;
298 return tile != null;
303 return false;
300 return false;
@@ -338,9 +335,9 @@ Item {
338 genericScopeView.scope = scopes.getScope("NullPreviewScope");
335 genericScopeView.scope = scopes.getScope("NullPreviewScope");
340 tryCompareFunction(function() {
337 tryCompareFunction(function() {
341− var cardGrid = findChild(genericScopeView, 0);
338+ var cardGrid = findChild(genericScopeView, 0, 0 /* timeout */);
342 if (cardGrid != null) {
339 if (cardGrid != null) {
343− var tile = findChild(cardGrid, 0);
340+ var tile = findChild(cardGrid, 0, 0 /* timeout */);
344 return tile != null;
341 return tile != null;
346 return false;
343 return false;
@@ -391,7 +388,6 @@ Item {
392 tryCompare(testCase.subPageLoader, "open", false);
389 tryCompare(testCase.subPageLoader, "open", false);
394− tryCompareFunction(function() { return findChild(category, "delegate1") != null; }, true);
395 var tile = findChild(category, "delegate1");
391 var tile = findChild(category, "delegate1");
397 mouseClick(tile);
393 mouseClick(tile);
@@ -493,7 +489,6 @@ Item {
494 scrollToEnd();
490 scrollToEnd();
496− tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory1") !== null; }, true);
497 var category1 = findChild(genericScopeView, "dashCategory1")
492 var category1 = findChild(genericScopeView, "dashCategory1")
498 var seeAll1 = findChild(category1, "seeAll")
493 var seeAll1 = findChild(category1, "seeAll")
499 verify(category1.expandable);
494 verify(category1.expandable);
@@ -672,7 +667,6 @@ Item {
672 function test_carousel_borderSource() {
667 function test_carousel_borderSource() {
673 var category = scrollToCategory("dashCategory1");
668 var category = scrollToCategory("dashCategory1");
674 var tile = findChild(category, "carouselDelegate0");
669 var tile = findChild(category, "carouselDelegate0");
675− tryCompareFunction(function() { return findChild(tile, "artShapeLoader") !== null; }, true);
676 var artShapeLoader = findChild(tile, "artShapeLoader");
670 var artShapeLoader = findChild(tile, "artShapeLoader");
677 var shape = findChildsByType(artShapeLoader, "UCUbuntuShape");
671 var shape = findChildsByType(artShapeLoader, "UCUbuntuShape");
678 compare(shape.borderSource, undefined);
672 compare(shape.borderSource, undefined);