@@ -450,13 +450,10 @@ Rectangle {
451 background.color = data.tag;
451 background.color = data.tag;
453− if (data.dark) {
453+ var fontColor = data.dark ? "grey" : "white";
454− tryCompareFunction(function() { return Qt.colorEqual(summary.color, "grey"); }, true);
454+
455− tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, "grey"); }, true);
457− tryCompareFunction(function() { return Qt.colorEqual(summary.color, "white"); }, true);
455+ tryCompareFunction(function() { return Qt.colorEqual(summary.color, fontColor); }, true);
458− tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, "white"); }, true);
456+ tryCompareFunction(function() { return Qt.colorEqual(header.fontColor, fontColor); }, true);
462 function test_mascotShape_data() {
459 function test_mascotShape_data() {
@@ -476,13 +473,8 @@ Rectangle {
476 verify(shape, "Could not find shape.");
473 verify(shape, "Could not find shape.");
477 verify(image, "Could not find image.");
474 verify(image, "Could not find image.");
480− tryCompare(shape, "visible", true);
476+ tryCompare(shape, "visible", data.shape);
481− tryCompare(image, "visible", false);
477+ tryCompare(image, "visible", !data.shape);
483− tryCompare(shape, "visible", false);
484− tryCompare(image, "visible", true);