Skip to content

Commit f0bbc25

Browse files
authored
Rollup merge of rust-lang#115244 - GuillaumeGomez:migrate-gui-test-color-36, r=notriddle
Migrate GUI colors test to original CSS color format Follow-up of rust-lang#111459. r? `@notriddle`
2 parents b578e86 + a448468 commit f0bbc25

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

tests/rustdoc-gui/warning-block.goml

+9-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ show-text: true
44

55
define-function: (
66
"check-warning",
7-
(theme, color, border_color, background_color),
7+
(theme, color, border_color),
88
block {
99
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
1010
reload:
@@ -14,32 +14,29 @@ define-function: (
1414
"margin-bottom": "12px",
1515
"color": |color|,
1616
"border-left": "2px solid " + |border_color|,
17-
"background-color": |background_color|,
17+
"background-color": "transparent",
1818
})
1919
assert-css: ("#doc-warning-2", {
2020
"margin-bottom": "0px",
2121
"color": |color|,
2222
"border-left": "2px solid " + |border_color|,
23-
"background-color": |background_color|,
23+
"background-color": "transparent",
2424
})
2525
},
2626
)
2727

2828
call-function: ("check-warning", {
2929
"theme": "ayu",
30-
"color": "rgb(197, 197, 197)",
31-
"border_color": "rgb(255, 142, 0)",
32-
"background_color": "rgba(0, 0, 0, 0)",
30+
"color": "#c5c5c5",
31+
"border_color": "#ff8e00",
3332
})
3433
call-function: ("check-warning", {
3534
"theme": "dark",
36-
"color": "rgb(221, 221, 221)",
37-
"border_color": "rgb(255, 142, 0)",
38-
"background_color": "rgba(0, 0, 0, 0)",
35+
"color": "#ddd",
36+
"border_color": "#ff8e00",
3937
})
4038
call-function: ("check-warning", {
4139
"theme": "light",
42-
"color": "rgb(0, 0, 0)",
43-
"border_color": "rgb(255, 142, 0)",
44-
"background_color": "rgba(0, 0, 0, 0)",
40+
"color": "black",
41+
"border_color": "#ff8e00",
4542
})

0 commit comments

Comments
 (0)