Skip to content

Commit b588641

Browse files
committed
Auto merge of rust-lang#115484 - GuillaumeGomez:migrate-gui-test-color-37, r=notriddle
Migrate GUI colors test to original CSS color format Follow-up of rust-lang#111459. r? `@notriddle`
2 parents 9f5fc1b + 680b3ac commit b588641

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/rustdoc-gui/sidebar.goml

+9-9
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,24 @@ call-function: (
2525
"check-colors",
2626
{
2727
"theme": "ayu",
28-
"color": "rgb(197, 197, 197)",
29-
"background_color": "rgb(20, 25, 31)",
28+
"color": "#c5c5c5",
29+
"background_color": "#14191f",
3030
}
3131
)
3232
call-function: (
3333
"check-colors",
3434
{
3535
"theme": "dark",
36-
"color": "rgb(221, 221, 221)",
37-
"background_color": "rgb(80, 80, 80)",
36+
"color": "#ddd",
37+
"background_color": "#505050",
3838
}
3939
)
4040
call-function: (
4141
"check-colors",
4242
{
4343
"theme": "light",
44-
"color": "rgb(0, 0, 0)",
45-
"background_color": "rgb(245, 245, 245)",
44+
"color": "black",
45+
"background_color": "#f5f5f5",
4646
}
4747
)
4848

@@ -55,7 +55,7 @@ assert-text: (".sidebar > .location", "Crate test_docs")
5555
assert-count: (".sidebar .location", 1)
5656
assert-count: (".sidebar h2", 1)
5757
assert-text: ("#all-types", "All Items")
58-
assert-css: ("#all-types", {"color": "rgb(53, 109, 164)"})
58+
assert-css: ("#all-types", {"color": "#356da4"})
5959
// We check that we have the crates list and that the "current" on is "test_docs".
6060
assert-text: (".sidebar-elems ul.crate > li > a.current", "test_docs")
6161
// And we're also supposed to have the list of items in the current module.
@@ -88,7 +88,7 @@ assert-property: ("html", {"scrollTop": "0"})
8888
// We now go back to the crate page to click on the "lib2" crate link.
8989
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
9090
assert-property: (".sidebar", {"clientWidth": "200"})
91-
assert-css: (".sidebar-elems ul.crate > li:first-child > a", {"color": "rgb(53, 109, 164)"})
91+
assert-css: (".sidebar-elems ul.crate > li:first-child > a", {"color": "#356da4"})
9292
click: ".sidebar-elems ul.crate > li:first-child > a"
9393

9494
// PAGE: lib2/index.html
@@ -140,7 +140,7 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
140140
assert-property: (".sidebar", {"clientWidth": "200"})
141141
click: "//ul[@class='block mod']/preceding-sibling::h3/a"
142142
// PAGE: index.html
143-
assert-css: ("#modules", {"background-color": "rgb(253, 255, 211)"})
143+
assert-css: ("#modules", {"background-color": "#fdffd3"})
144144

145145
// Finally, assert that the `[+]/[−]` toggle doesn't affect sidebar width.
146146
click: "#toggle-all-docs"

0 commit comments

Comments
 (0)