@@ -451,11 +451,11 @@ Rectangle {
451451 background.color = data.tag;
452452
453453 if (data.dark) {
454− verify(Qt.colorEqual(summary.color, "grey"), "Summary should be grey.");
455− verify(Qt.colorEqual(header.fontColor, "grey"), "Header color should be grey.");
454+ tryCompareFunction(function() { return Qt.colorEqual(summary.color, "grey"); }, true);
455+ tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, "grey"); }, true);
456456 } else {
457− verify(Qt.colorEqual(summary.color, "white"), "Summary should be white.");
458− verify(Qt.colorEqual(header.fontColor, "white"), "Header color should be white.");
457+ tryCompareFunction(function() { return Qt.colorEqual(summary.color, "white"); }, true);
458+ tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, "white"); }, true);
459459 }
460460 }
461461
@@ -469,7 +469,6 @@ Rectangle {
469469
470470 function test_mascotShape(data) {
471471 selector.selectedIndex = data.index;
472− wait(200)
473472
474473 var shape = findChild(card, "mascotShape");
475474 var image = findChild(card, "mascotImage");
@@ -478,11 +477,11 @@ Rectangle {
478477 verify(image, "Could not find image.");
479478
480479 if (data.shape) {
481− verify(shape.visible, "Shape should be visible");
482− verify(!image.visible, "Image should not be visible");
480+ tryCompare(shape, "visible", true);
481+ tryCompare(image, "visible", false);
483482 } else {
484− verify(!shape.visible, "Shape should not be visible");
485− verify(image.visible, "Image should be visible");
483+ tryCompare(shape, "visible", false);
484+ tryCompare(image, "visible", true);
486485 }
487486 }
488487 }