@@ -36,8 +36,12 @@ Rectangle {
36 property var styles: [
36 property var styles: [
38 { "foreground-color": "red", "background-color": "black", "page-header": { "logo": "/foo/bar" } },
38 { "foreground-color": "red", "background-color": "black", "page-header": { "logo": "/foo/bar" } },
39− { "foreground-color": "green", "background-color": "white", "page-header": { "foreground-color": "black" } },
39+ { "foreground-color": "green", "background-color": "white",
40+ "page-header": { "foreground-color": "black",
41+ "divider-color": "blue" } },
40− { "foreground-color": "blue", "background-color": "darkgrey", "page-header": { "background": "gradient:///white/blue" } },
42+ { "foreground-color": "blue", "background-color": "darkgrey",
43+ "page-header": { "background": "gradient:///white/blue",
44+ "navigation-background": "gradient:///white/blue" } },
43 function cleanup() {
47 function cleanup() {
@@ -179,5 +183,30 @@ Rectangle {
179 tool.style = testCase.styles[data.index];
183 tool.style = testCase.styles[data.index];
180 compare(tool.headerBackground, data.headerBackground, "Header background was incorrect.");
184 compare(tool.headerBackground, data.headerBackground, "Header background was incorrect.");
187+ function test_headerDividerColor_data() {
189+ { tag: "default", index: 0, headerDividerColor: "#e0e0e0" },
190+ { tag: "blue", index: 2, headerDividerColor: "blue" },
194+ function test_headerDividerColor(data) {
195+ tool.style = testCase.styles[data.index];
196+ verify(Qt.colorEqual(tool.headerDividerColor, data.headerDividerColor),
197+ "Header divider color not equal: %1 != %2".arg(tool.headerDividerColor).arg(data.headerDividerColor));
200+ function test_navigationBackground_data() {
202+ { tag: "default", index: 0, navigationBackground: "color:///#e0e0e0" },
203+ { tag: "black", index: 3, navigationBackground: "gradient:///white/blue" },
207+ function test_navigationBackground(data) {
208+ tool.style = testCase.styles[data.index];
209+ compare(tool.navigationBackground, data.navigationBackground, "Navigation background was incorrect.");