@@ -35,7 +35,7 @@ Rectangle {
3535 property color color
3636 property var styles: [
3737 {},
38− { "foreground-color": "red", "background-color": "black" },
38+ { "foreground-color": "red", "background-color": "black", "page-header": { "logo": "/foo/bar" } },
3939 { "foreground-color": "green", "background-color": "white" },
4040 { "foreground-color": "blue", "background-color": "darkgrey" },
4141 ]
@@ -136,5 +136,16 @@ Rectangle {
136136 "Dark color not equal: %1 != %2".arg(tool.dark).arg(data.dark));
137137 }
138138
139+ function test_headerLogo_data() {
140+ return [
141+ { tag: "default", index: 0, headerLogo: "" },
142+ { tag: "with logo", index: 1, headerLogo: "file:///foo/bar" },
143+ ];
144+ }
145+
146+ function test_headerLogo(data) {
147+ tool.style = testCase.styles[data.index];
148+ compare(tool.headerLogo, data.headerLogo, "Header logo was incorrect.");
149+ }
139150 }
140151}