@@ -35,7 +35,8 @@ Rectangle {
3535 property color color
3636 property var styles: [
3737 {},
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+ "preview-button-color": "red"},
3940 { "foreground-color": "green", "background-color": "white",
4041 "page-header": { "foreground-color": "black",
4142 "divider-color": "blue" } },
@@ -208,5 +209,18 @@ Rectangle {
208209 tool.style = testCase.styles[data.index];
209210 compare(tool.navigationBackground, data.navigationBackground, "Navigation background was incorrect.");
210211 }
212+
213+ function test_previewButtonColor_data() {
214+ return [
215+ { tag: "default", index: 0, previewButtonColor: Theme.palette.selected.foreground },
216+ { tag: "red", index: 1, previewButtonColor: "red" },
217+ ];
218+ }
219+
220+ function test_previewButtonColor(data) {
221+ tool.style = testCase.styles[data.index];
222+ verify(Qt.colorEqual(tool.previewButtonColor, data.previewButtonColor),
223+ "Preview button color not equal: %1 != %2".arg(tool.previewButtonColor).arg(data.previewButtonColor));
224+ }
211225 }
212226}