Skip to content

Commit 8e55400

Browse files
Convert some GUI tests color checks to use original format
1 parent 0630283 commit 8e55400

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/rustdoc-gui/docblock-details.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ reload:
99
assert-text: (".top-doc .docblock > h3", "Hello")
1010
assert-css: (
1111
".top-doc .docblock > h3",
12-
{"border-bottom": "1px solid rgb(210, 210, 210)"},
12+
{"border-bottom": "1px solid #d2d2d2"},
1313
)
1414
// We now check that the `<summary>` doesn't have a bottom border and has the correct display.
1515
assert-css: (

tests/rustdoc-gui/sidebar-source-code-display.goml

+13-13
Original file line numberDiff line numberDiff line change
@@ -121,28 +121,28 @@ define-function: (
121121

122122
call-function: ("check-colors", {
123123
"theme": "light",
124-
"color": "rgb(0, 0, 0)",
125-
"color_hover": "rgb(0, 0, 0)",
126-
"background": "rgb(255, 255, 255)",
127-
"background_hover": "rgb(224, 224, 224)",
124+
"color": "black",
125+
"color_hover": "#000",
126+
"background": "#fff",
127+
"background_hover": "#e0e0e0",
128128
"background_toggle": "rgba(0, 0, 0, 0)",
129-
"background_toggle_hover": "rgb(224, 224, 224)",
129+
"background_toggle_hover": "#e0e0e0",
130130
})
131131
call-function: ("check-colors", {
132132
"theme": "dark",
133-
"color": "rgb(221, 221, 221)",
134-
"color_hover": "rgb(221, 221, 221)",
135-
"background": "rgb(51, 51, 51)",
136-
"background_hover": "rgb(68, 68, 68)",
133+
"color": "#ddd",
134+
"color_hover": "#ddd",
135+
"background": "#333",
136+
"background_hover": "#444",
137137
"background_toggle": "rgba(0, 0, 0, 0)",
138-
"background_toggle_hover": "rgb(103, 103, 103)",
138+
"background_toggle_hover": "#676767",
139139
})
140140
call-function: ("check-colors", {
141141
"theme": "ayu",
142-
"color": "rgb(197, 197, 197)",
143-
"color_hover": "rgb(255, 180, 76)",
142+
"color": "#c5c5c5",
143+
"color_hover": "#ffb44c",
144144
"background": "rgb(20, 25, 31)",
145-
"background_hover": "rgb(20, 25, 31)",
145+
"background_hover": "#14191f",
146146
"background_toggle": "rgba(0, 0, 0, 0)",
147147
"background_toggle_hover": "rgba(70, 70, 70, 0.33)",
148148
})

0 commit comments

Comments
 (0)