@@ -427,5 +427,36 @@ Rectangle {
428 tryCompare(testCase.title.font, "weight", data.weight);
428 tryCompare(testCase.title.font, "weight", data.weight);
431+ function test_fontColor_data() {
433+ { tag: "#ffffff", dark: true },
434+ { tag: "#fdfdfd", dark: true },
435+ { tag: "#f9f9f9", dark: true },
436+ { tag: "#000000", dark: false },
437+ { tag: "#ef814c", dark: false },
438+ { tag: "#312f2c", dark: false },
439+ { tag: "#be332d", dark: false },
440+ { tag: "#52ace4", dark: false },
441+ { tag: "#3a5897", dark: false },
442+ { tag: "#1caeeb", dark: false },
443+ { tag: "#87c341", dark: false },
444+ { tag: "#50893b", dark: false },
448+ function test_fontColor(data) {
449+ selector.selectedIndex = 10;
451+ background.color = data.tag;
454+ verify(Qt.colorEqual(summary.color, "grey"), "Summary should be grey.");
455+ verify(Qt.colorEqual(header.fontColor, "grey"), "Header color should be grey.");
457+ verify(Qt.colorEqual(summary.color, "white"), "Summary should be white.");
458+ verify(Qt.colorEqual(header.fontColor, "white"), "Header color should be white.");