@@ -451,11 +451,11 @@ Rectangle {
451 background.color = data.tag;
451 background.color = data.tag;
453 if (data.dark) {
453 if (data.dark) {
454− verify(Qt.colorEqual(summary.color, "grey"), "Summary should be grey.");
454+ tryCompareFunction(function() { return Qt.colorEqual(summary.color, "grey"); }, true);
455− verify(Qt.colorEqual(header.fontColor, "grey"), "Header color should be grey.");
455+ tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, "grey"); }, true);
457− verify(Qt.colorEqual(summary.color, "white"), "Summary should be white.");
457+ tryCompareFunction(function() { return Qt.colorEqual(summary.color, "white"); }, true);
458− verify(Qt.colorEqual(header.fontColor, "white"), "Header color should be white.");
458+ tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, "white"); }, true);
@@ -469,7 +469,6 @@ Rectangle {
470 function test_mascotShape(data) {
470 function test_mascotShape(data) {
471 selector.selectedIndex = data.index;
471 selector.selectedIndex = data.index;
474 var shape = findChild(card, "mascotShape");
473 var shape = findChild(card, "mascotShape");
475 var image = findChild(card, "mascotImage");
474 var image = findChild(card, "mascotImage");
@@ -478,11 +477,11 @@ Rectangle {
478 verify(image, "Could not find image.");
477 verify(image, "Could not find image.");
480 if (data.shape) {
479 if (data.shape) {
481− verify(shape.visible, "Shape should be visible");
480+ tryCompare(shape, "visible", true);
482− verify(!image.visible, "Image should not be visible");
481+ tryCompare(image, "visible", false);
484− verify(!shape.visible, "Shape should not be visible");
483+ tryCompare(shape, "visible", false);
485− verify(image.visible, "Image should be visible");
484+ tryCompare(image, "visible", true);