@@ -631,18 +631,26 @@ Item {
631631 tryCompare(dashContent.currentScope, "id", "clickscope");
632632
633633 scrollToCategory("dashCategorypredefined");
634− var tile = getCategoryDelegate("predefined", 2);
635− var proportionalShape = findChildsByType(tile, "UCProportionalShape");
636− compare(proportionalShape.length, 1);
634+ tryCompareFunction(function() {
635+ var tile = getCategoryDelegate("predefined", 2);
636+ var proportionalShape = findChildsByType(tile, "UCProportionalShape");
637+ return proportionalShape.length === 1;
638+ },
639+ true
640+ );
637641
638642 dash.setCurrentScope("libertine-scope.ubuntu_libertine-scope");
639643 var dashContent = findChild(dash, "dashContent");
640644 tryCompare(dashContent.currentScope, "id", "libertine-scope.ubuntu_libertine-scope");
641645
642646 scrollToCategory("dashCategory2");
643− tile = getCategoryDelegate("2", 2);
644− proportionalShape = findChildsByType(tile, "UCProportionalShape");
645− compare(proportionalShape.length, 1);
647+ tryCompareFunction(function() {
648+ var tile = getCategoryDelegate("2", 2);
649+ var proportionalShape = findChildsByType(tile, "UCProportionalShape");
650+ return proportionalShape.length === 1;
651+ },
652+ true
653+ );
646654 }
647655
648656 function test_tempScopeItemXOnResize()