Skip to content

Commit 0f3e8b6

Browse files
authored
Rollup merge of #112133 - GuillaumeGomez:migrate-gui-test-color-10, r=notriddle
Migrate GUI colors test to original CSS color format Follow-up of #111459. r? `@notriddle`
2 parents 24fadb3 + 9dedb43 commit 0f3e8b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/rustdoc-gui/theme-in-history.goml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ set-local-storage: {
77
}
88
// We reload the page so the local storage settings are being used.
99
reload:
10-
assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
10+
assert-css: ("body", { "background-color": "#353535" })
1111
assert-local-storage: { "rustdoc-theme": "dark" }
1212

1313
// Now we go to the settings page.
1414
go-to: "file://" + |DOC_PATH| + "/settings.html"
1515
wait-for: "#settings"
1616
// We change the theme to "light".
1717
click: "#theme-light"
18-
wait-for-css: ("body", { "background-color": "rgb(255, 255, 255)" })
18+
wait-for-css: ("body", { "background-color": "white" })
1919
assert-local-storage: { "rustdoc-theme": "light" }
2020

2121
// We go back in history.
2222
history-go-back:
2323
// Confirm that we're not on the settings page.
2424
assert-false: "#settings"
2525
// Check that the current theme is still "light".
26-
assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
26+
assert-css: ("body", { "background-color": "white" })
2727
assert-local-storage: { "rustdoc-theme": "light" }

0 commit comments

Comments
 (0)