mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
Rollup merge of #112133 - GuillaumeGomez:migrate-gui-test-color-10, r=notriddle
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? ```@notriddle```
This commit is contained in:
commit
955bba36ea
@ -7,7 +7,7 @@ set-local-storage: {
|
||||
}
|
||||
// We reload the page so the local storage settings are being used.
|
||||
reload:
|
||||
assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
|
||||
assert-css: ("body", { "background-color": "#353535" })
|
||||
assert-local-storage: { "rustdoc-theme": "dark" }
|
||||
|
||||
// Now we go to the settings page.
|
||||
@ -15,7 +15,7 @@ go-to: "file://" + |DOC_PATH| + "/settings.html"
|
||||
wait-for: "#settings"
|
||||
// We change the theme to "light".
|
||||
click: "#theme-light"
|
||||
wait-for-css: ("body", { "background-color": "rgb(255, 255, 255)" })
|
||||
wait-for-css: ("body", { "background-color": "white" })
|
||||
assert-local-storage: { "rustdoc-theme": "light" }
|
||||
|
||||
// We go back in history.
|
||||
@ -23,5 +23,5 @@ history-go-back:
|
||||
// Confirm that we're not on the settings page.
|
||||
assert-false: "#settings"
|
||||
// Check that the current theme is still "light".
|
||||
assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
|
||||
assert-css: ("body", { "background-color": "white" })
|
||||
assert-local-storage: { "rustdoc-theme": "light" }
|
||||
|
Loading…
Reference in New Issue
Block a user