Skip to content

Commit 5215343

Browse files
authored
Rollup merge of #113959 - GuillaumeGomez:migrate-gui-test-color-22, r=notriddle
Migrate GUI colors test to original CSS color format Follow-up of #111459. r? `@notriddle`
2 parents b7183bd + d4ce83c commit 5215343

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

tests/rustdoc-gui/item-decl-colors.goml

+25-24
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ define-function: (
2020
block {
2121
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.WithGenerics.html"
2222
show-text: true
23+
2324
set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
2425
reload:
2526
assert-css: (".item-decl .code-attribute", {"color": |attr_color|}, ALL)
@@ -40,41 +41,41 @@ call-function: (
4041
"check-colors",
4142
{
4243
"theme": "ayu",
43-
"attr_color": "rgb(153, 153, 153)",
44-
"trait_color": "rgb(57, 175, 215)",
45-
"struct_color": "rgb(255, 160, 165)",
46-
"enum_color": "rgb(255, 160, 165)",
47-
"primitive_color": "rgb(255, 160, 165)",
48-
"constant_color": "rgb(57, 175, 215)",
49-
"fn_color": "rgb(253, 214, 135)",
50-
"assoc_type_color": "rgb(57, 175, 215)",
44+
"attr_color": "#999",
45+
"trait_color": "#39afd7",
46+
"struct_color": "#ffa0a5",
47+
"enum_color": "#ffa0a5",
48+
"primitive_color": "#ffa0a5",
49+
"constant_color": "#39afd7",
50+
"fn_color": "#fdd687",
51+
"assoc_type_color": "#39afd7",
5152
},
5253
)
5354
call-function: (
5455
"check-colors",
5556
{
5657
"theme": "dark",
57-
"attr_color": "rgb(153, 153, 153)",
58-
"trait_color": "rgb(183, 140, 242)",
59-
"struct_color": "rgb(45, 191, 184)",
60-
"enum_color": "rgb(45, 191, 184)",
61-
"primitive_color": "rgb(45, 191, 184)",
62-
"constant_color": "rgb(210, 153, 29)",
63-
"fn_color": "rgb(43, 171, 99)",
64-
"assoc_type_color": "rgb(210, 153, 29)",
58+
"attr_color": "#999",
59+
"trait_color": "#b78cf2",
60+
"struct_color": "#2dbfb8",
61+
"enum_color": "#2dbfb8",
62+
"primitive_color": "#2dbfb8",
63+
"constant_color": "#d2991d",
64+
"fn_color": "#2bab63",
65+
"assoc_type_color": "#d2991d",
6566
},
6667
)
6768
call-function: (
6869
"check-colors",
6970
{
7071
"theme": "light",
71-
"attr_color": "rgb(153, 153, 153)",
72-
"trait_color": "rgb(110, 79, 201)",
73-
"struct_color": "rgb(173, 55, 138)",
74-
"enum_color": "rgb(173, 55, 138)",
75-
"primitive_color": "rgb(173, 55, 138)",
76-
"constant_color": "rgb(56, 115, 173)",
77-
"fn_color": "rgb(173, 124, 55)",
78-
"assoc_type_color": "rgb(56, 115, 173)",
72+
"attr_color": "#999",
73+
"trait_color": "#6e4fc9",
74+
"struct_color": "#ad378a",
75+
"enum_color": "#ad378a",
76+
"primitive_color": "#ad378a",
77+
"constant_color": "#3873ad",
78+
"fn_color": "#ad7c37",
79+
"assoc_type_color": "#3873ad",
7980
},
8081
)

0 commit comments

Comments
 (0)