@@ -427,5 +427,36 @@ Rectangle {
427427
428428 tryCompare(testCase.title.font, "weight", data.weight);
429429 }
430+
431+ function test_fontColor_data() {
432+ return [
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 },
445+ ];
446+ }
447+
448+ function test_fontColor(data) {
449+ selector.selectedIndex = 10;
450+
451+ background.color = data.tag;
452+
453+ 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.");
456+ } else {
457+ verify(Qt.colorEqual(summary.color, "white"), "Summary should be white.");
458+ verify(Qt.colorEqual(header.fontColor, "white"), "Header color should be white.");
459+ }
460+ }
430461 }
431462}