@@ -35,9 +35,9 @@ Rectangle {
35 property color color
35 property color color
36 property var styles: [
36 property var styles: [
38− { "foreground-color": "red" },
38+ { "foreground-color": "red", "background-color": "black" },
39− { "foreground-color": "green" },
39+ { "foreground-color": "green", "background-color": "white" },
40− { "foreground-color": "blue" },
40+ { "foreground-color": "blue", "background-color": "darkgrey" },
43 function cleanup() {
43 function cleanup() {
@@ -76,5 +76,21 @@ Rectangle {
76 verify(Qt.colorEqual(tool.foreground, data.foreground),
76 verify(Qt.colorEqual(tool.foreground, data.foreground),
77 "Foreground color not equal: %1 != %2".arg(tool.foreground).arg(data.foreground));
77 "Foreground color not equal: %1 != %2".arg(tool.foreground).arg(data.foreground));
80+ function test_background_data() {
82+ { tag: "default", index: 0, background: "transparent" },
83+ { tag: "black", index: 1, background: "black" },
84+ { tag: "white", index: 2, background: "white" },
85+ { tag: "darkgrey", index: 3, background: "darkgrey" },
89+ function test_background(data) {
90+ tool.style = testCase.styles[data.index];
91+ verify(Qt.colorEqual(tool.background, data.background),
92+ "Background color not equal: %1 != %2".arg(tool.background).arg(data.background));