@@ -68,7 +68,7 @@ Rectangle {
6868
6969 function test_background_data() {
7070 return [
71− { tag: "default", index: 0, background: "transparent" },
71+ { tag: "default", index: 0, background: "#00f5f5f5", luminance: 0.9608 },
7272 { tag: "red on black", index: 1, background: "black", luminance: 0 },
7373 { tag: "green on white", index: 2, background: "white", luminance: 1 },
7474 { tag: "blue on darkgrey", index: 3, background: "darkgrey", luminance: 0.6627 },
@@ -79,9 +79,7 @@ Rectangle {
7979 tool.style = testCase.styles[data.index];
8080 verify(Qt.colorEqual(tool.background, data.background),
8181 "Background color not equal: %1 != %2".arg(tool.background).arg(data.background));
82− if (data.hasOwnProperty("luminance")) {
83− compare(tool.backgroundLuminance.toFixed(4), data.luminance.toFixed(4));
84− }
82+ compare(tool.backgroundLuminance.toFixed(4), data.luminance.toFixed(4));
8583 }
8684
8785 function test_threshold_data() {