@@ -450,13 +450,10 @@ Rectangle {
450450
451451 background.color = data.tag;
452452
453− if (data.dark) {
454− tryCompareFunction(function() { return Qt.colorEqual(summary.color, "grey"); }, true);
455− tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, "grey"); }, true);
456− } else {
457− tryCompareFunction(function() { return Qt.colorEqual(summary.color, "white"); }, true);
458− tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, "white"); }, true);
459− }
453+ var fontColor = data.dark ? "grey" : "white";
454+
455+ tryCompareFunction(function() { return Qt.colorEqual(summary.color, fontColor); }, true);
456+ tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, fontColor); }, true);
460457 }
461458
462459 function test_mascotShape_data() {
@@ -476,13 +473,8 @@ Rectangle {
476473 verify(shape, "Could not find shape.");
477474 verify(image, "Could not find image.");
478475
479− if (data.shape) {
480− tryCompare(shape, "visible", true);
481− tryCompare(image, "visible", false);
482− } else {
483− tryCompare(shape, "visible", false);
484− tryCompare(image, "visible", true);
485− }
476+ tryCompare(shape, "visible", data.shape);
477+ tryCompare(image, "visible", !data.shape);
486478 }
487479 }
488480}