Skip to content

Commit 0d8a2e5

Browse files
Rollup merge of #111765 - GuillaumeGomez:migrate-gui-test-color, r=notriddle
Migrate GUI colors test to original CSS color format Follow-up of #111459. r? `@notriddle`
2 parents 3f9a7e7 + c2d3b23 commit 0d8a2e5

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tests/rustdoc-gui/scrape-examples-color.goml

+18-18
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,30 @@ define-function: (
3333

3434
call-function: ("check-colors", {
3535
"theme": "ayu",
36-
"highlight": "rgb(91, 59, 1)",
37-
"highlight_focus": "rgb(124, 75, 15)",
38-
"help_border": "rgb(170, 170, 170)",
39-
"help_color": "rgb(238, 238, 238)",
40-
"help_hover_border": "rgb(255, 255, 255)",
41-
"help_hover_color": "rgb(255, 255, 255)",
36+
"highlight": "#5b3b01",
37+
"highlight_focus": "#7c4b0f",
38+
"help_border": "#aaa",
39+
"help_color": "#eee",
40+
"help_hover_border": "#fff",
41+
"help_hover_color": "#fff",
4242
})
4343
call-function: ("check-colors", {
4444
"theme": "dark",
45-
"highlight": "rgb(91, 59, 1)",
46-
"highlight_focus": "rgb(124, 75, 15)",
47-
"help_border": "rgb(170, 170, 170)",
48-
"help_color": "rgb(238, 238, 238)",
49-
"help_hover_border": "rgb(255, 255, 255)",
50-
"help_hover_color": "rgb(255, 255, 255)",
45+
"highlight": "#5b3b01",
46+
"highlight_focus": "#7c4b0f",
47+
"help_border": "#aaa",
48+
"help_color": "#eee",
49+
"help_hover_border": "#fff",
50+
"help_hover_color": "#fff",
5151
})
5252
call-function: ("check-colors", {
5353
"theme": "light",
54-
"highlight": "rgb(252, 255, 214)",
55-
"highlight_focus": "rgb(246, 253, 176)",
56-
"help_border": "rgb(85, 85, 85)",
57-
"help_color": "rgb(51, 51, 51)",
58-
"help_hover_border": "rgb(0, 0, 0)",
59-
"help_hover_color": "rgb(0, 0, 0)",
54+
"highlight": "#fcffd6",
55+
"highlight_focus": "#f6fdb0",
56+
"help_border": "#555",
57+
"help_color": "#333",
58+
"help_hover_border": "#000",
59+
"help_hover_color": "#000",
6060
})
6161

6262
// Now testing the top and bottom background in case there is only one scraped examples.

0 commit comments

Comments
 (0)