Skip to content

Commit fa1f161

Browse files
Migrate GUI colors test to original CSS color format
1 parent e0ba2d0 commit fa1f161

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

tests/rustdoc-gui/settings.goml

+30-30
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ move-cursor-to: "#settings-menu > a"
5656
assert-css: (
5757
"#theme-dark",
5858
{
59-
"border-color": "rgb(153, 153, 153)",
60-
"box-shadow": "rgb(53, 53, 53) 0px 0px 0px 3px inset",
59+
"border-color": "#999",
60+
"box-shadow": "#353535 0px 0px 0px 3px inset",
6161
"border-width": "2px",
6262
},
6363
)
64-
assert-css: ("#theme-light", {"border-color": "rgb(153, 153, 153)", "box-shadow": "none"})
64+
assert-css: ("#theme-light", {"border-color": "#999", "box-shadow": "none"})
6565
// Let's start with the hover for radio buttons.
6666
move-cursor-to: "#theme-dark"
6767
assert-css: (
6868
"#theme-dark",
6969
{
70-
"border-color": "rgb(33, 150, 243)",
71-
"box-shadow": "rgb(53, 53, 53) 0px 0px 0px 3px inset",
70+
"border-color": "#2196f3",
71+
"box-shadow": "#353535 0px 0px 0px 3px inset",
7272
"border-width": "2px",
7373
},
7474
)
7575
move-cursor-to: "#theme-light"
7676
assert-css: (
7777
"#theme-light",
7878
{
79-
"border-color": "rgb(33, 150, 243)",
79+
"border-color": "#2196f3",
8080
"box-shadow": "none",
8181
"border-width": "2px",
8282
}
@@ -87,17 +87,17 @@ focus: "#theme-dark"
8787
assert-css: (
8888
"#theme-dark",
8989
{
90-
"border-color": "rgb(153, 153, 153)",
91-
"box-shadow": "rgb(53, 53, 53) 0px 0px 0px 3px inset, rgb(33, 150, 243) 0px 0px 2px 2px",
90+
"border-color": "#999",
91+
"box-shadow": "#353535 0px 0px 0px 3px inset, #2196f3 0px 0px 2px 2px",
9292
"border-width": "2px",
9393
},
9494
)
9595
focus: "#theme-light"
9696
assert-css: (
9797
"#theme-light",
9898
{
99-
"border-color": "rgb(153, 153, 153)",
100-
"box-shadow": "rgb(33, 150, 243) 0px 0px 1px 1px",
99+
"border-color": "#999",
100+
"box-shadow": "#2196f3 0px 0px 1px 1px",
101101
"border-width": "2px",
102102
},
103103
)
@@ -107,8 +107,8 @@ focus: "#theme-dark"
107107
assert-css: (
108108
"#theme-dark",
109109
{
110-
"border-color": "rgb(33, 150, 243)",
111-
"box-shadow": "rgb(53, 53, 53) 0px 0px 0px 3px inset, rgb(33, 150, 243) 0px 0px 2px 2px",
110+
"border-color": "#2196f3",
111+
"box-shadow": "#353535 0px 0px 0px 3px inset, #2196f3 0px 0px 2px 2px",
112112
"border-width": "2px",
113113
},
114114
)
@@ -117,8 +117,8 @@ focus: "#theme-light"
117117
assert-css: (
118118
"#theme-light",
119119
{
120-
"border-color": "rgb(33, 150, 243)",
121-
"box-shadow": "rgb(33, 150, 243) 0px 0px 1px 1px",
120+
"border-color": "#2196f3",
121+
"box-shadow": "#2196f3 0px 0px 1px 1px",
122122
"border-width": "2px",
123123
},
124124
)
@@ -154,8 +154,8 @@ compare-elements-position-near: (
154154
assert-css: (
155155
"#auto-hide-large-items",
156156
{
157-
"background-color": "rgb(33, 150, 243)",
158-
"border-color": "rgb(153, 153, 153)",
157+
"background-color": "#2196f3",
158+
"border-color": "#999",
159159
// 1px border when checked
160160
"border-width": "1px",
161161
},
@@ -164,7 +164,7 @@ assert-css: (
164164
"#auto-hide-method-docs",
165165
{
166166
"background-color": "rgba(0, 0, 0, 0)",
167-
"border-color": "rgb(153, 153, 153)",
167+
"border-color": "#999",
168168
// 2px border when unchecked
169169
"border-width": "2px",
170170
},
@@ -174,8 +174,8 @@ move-cursor-to: "#auto-hide-large-items"
174174
assert-css: (
175175
"#auto-hide-large-items",
176176
{
177-
"background-color": "rgb(33, 150, 243)",
178-
"border-color": "rgb(33, 150, 243)",
177+
"background-color": "#2196f3",
178+
"border-color": "#2196f3",
179179
// 1px border when checked
180180
"border-width": "1px",
181181
},
@@ -185,7 +185,7 @@ assert-css: (
185185
"#auto-hide-method-docs",
186186
{
187187
"background-color": "rgba(0, 0, 0, 0)",
188-
"border-color": "rgb(33, 150, 243)",
188+
"border-color": "#2196f3",
189189
// 2px border when unchecked
190190
"border-width": "2px",
191191
},
@@ -196,9 +196,9 @@ focus: "#auto-hide-large-items"
196196
assert-css: (
197197
"#auto-hide-large-items",
198198
{
199-
"background-color": "rgb(33, 150, 243)",
200-
"border-color": "rgb(153, 153, 153)",
201-
"box-shadow": "rgb(33, 150, 243) 0px 0px 1px 1px",
199+
"background-color": "#2196f3",
200+
"border-color": "#999",
201+
"box-shadow": "#2196f3 0px 0px 1px 1px",
202202
// 1px border when checked
203203
"border-width": "1px",
204204
},
@@ -208,8 +208,8 @@ assert-css: (
208208
"#auto-hide-method-docs",
209209
{
210210
"background-color": "rgba(0, 0, 0, 0)",
211-
"border-color": "rgb(153, 153, 153)",
212-
"box-shadow": "rgb(33, 150, 243) 0px 0px 1px 1px",
211+
"border-color": "#999",
212+
"box-shadow": "#2196f3 0px 0px 1px 1px",
213213
// 2px border when unchecked
214214
"border-width": "2px",
215215
},
@@ -220,9 +220,9 @@ focus: "#auto-hide-large-items"
220220
assert-css: (
221221
"#auto-hide-large-items",
222222
{
223-
"background-color": "rgb(33, 150, 243)",
224-
"border-color": "rgb(33, 150, 243)",
225-
"box-shadow": "rgb(33, 150, 243) 0px 0px 1px 1px",
223+
"background-color": "#2196f3",
224+
"border-color": "#2196f3",
225+
"box-shadow": "#2196f3 0px 0px 1px 1px",
226226
// 1px border when checked
227227
"border-width": "1px",
228228
},
@@ -233,8 +233,8 @@ assert-css: (
233233
"#auto-hide-method-docs",
234234
{
235235
"background-color": "rgba(0, 0, 0, 0)",
236-
"border-color": "rgb(33, 150, 243)",
237-
"box-shadow": "rgb(33, 150, 243) 0px 0px 1px 1px",
236+
"border-color": "#2196f3",
237+
"box-shadow": "#2196f3 0px 0px 1px 1px",
238238
// 2px border when unchecked
239239
"border-width": "2px",
240240
},

0 commit comments

Comments
 (0)