Skip to content

Commit

Permalink
Rollup merge of #113228 - GuillaumeGomez:migrate-gui-test-color-18, r…
Browse files Browse the repository at this point in the history
…=notriddle

Migrate GUI colors test to original CSS color format

Follow-up of #111459.

r? ``@notriddle``
  • Loading branch information
matthiaskrgr authored Jul 2, 2023
2 parents c4ba0a6 + c607e20 commit 37c5065
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/rustdoc-gui/search-filter.goml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,25 @@ reload:
set-timeout: 2000
wait-for: "#crate-search"
assert-css: ("#crate-search", {
"border": "1px solid rgb(224, 224, 224)",
"color": "rgb(0, 0, 0)",
"background-color": "rgb(255, 255, 255)",
"border": "1px solid #e0e0e0",
"color": "black",
"background-color": "white",
})

// We now check the dark theme.
click: "#settings-menu"
wait-for: "#settings"
click: "#theme-dark"
wait-for-css: ("#crate-search", {
"border": "1px solid rgb(224, 224, 224)",
"color": "rgb(221, 221, 221)",
"background-color": "rgb(53, 53, 53)",
"border": "1px solid #e0e0e0",
"color": "#ddd",
"background-color": "#353535",
})

// And finally we check the ayu theme.
click: "#theme-ayu"
wait-for-css: ("#crate-search", {
"border": "1px solid rgb(92, 103, 115)",
"color": "rgb(255, 255, 255)",
"background-color": "rgb(15, 20, 25)",
"border": "1px solid #5c6773",
"color": "#fff",
"background-color": "#0f1419",
})

0 comments on commit 37c5065

Please sign in to comment.