Skip to content

Commit 38a2d5f

Browse files
Rollup merge of #115503 - GuillaumeGomez:migrate-gui-test-color-38, r=notriddle
Migrate GUI colors test to original CSS color format Follow-up of #111459. r? `@notriddle`
2 parents dbeef45 + 8e5dff1 commit 38a2d5f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

tests/rustdoc-gui/code-color.goml

+15-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ define-function: (
1919
},
2020
)
2121

22-
call-function: ("check-colors", ("ayu", "rgb(230, 225, 207)", "rgb(255, 180, 84)"))
23-
call-function: ("check-colors", ("dark", "rgb(221, 221, 221)", "rgb(221, 221, 221)"))
24-
call-function: ("check-colors", ("light", "rgb(0, 0, 0)", "rgb(0, 0, 0)"))
22+
call-function: ("check-colors", {
23+
"theme": "ayu",
24+
"doc_code_color": "#e6e1cf",
25+
"doc_inline_code_color": "#ffb454",
26+
})
27+
call-function: ("check-colors", {
28+
"theme": "dark",
29+
"doc_code_color": "#ddd",
30+
"doc_inline_code_color": "#ddd",
31+
})
32+
call-function: ("check-colors", {
33+
"theme": "light",
34+
"doc_code_color": "black",
35+
"doc_inline_code_color": "black",
36+
})

0 commit comments

Comments
 (0)