1 // This test ensures that the color of the items in the type decl are working as expected.
3 // We need to disable this check because `implementors/test_docs/trait.TraitWithoutGenerics.js`
5 fail-on-request-error: false
21 ("goto", "file://" + |DOC_PATH| + "/test_docs/struct.WithGenerics.html"),
23 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
25 ("assert-css", (".item-decl .code-attribute", {"color": |attr_color|}, ALL)),
26 ("assert-css", (".item-decl .trait", {"color": |trait_color|}, ALL)),
27 // We need to add `code` here because otherwise it would select the parent too.
28 ("assert-css", (".item-decl code .struct", {"color": |struct_color|}, ALL)),
29 ("assert-css", (".item-decl .enum", {"color": |enum_color|}, ALL)),
30 ("assert-css", (".item-decl .primitive", {"color": |primitive_color|}, ALL)),
31 ("goto", "file://" + |DOC_PATH| + "/test_docs/trait.TraitWithoutGenerics.html"),
32 ("assert-css", (".item-decl .constant", {"color": |constant_color|}, ALL)),
33 ("assert-css", (".item-decl .fn", {"color": |fn_color|}, ALL)),
34 ("assert-css", (".item-decl .associatedtype", {"color": |assoc_type_color|}, ALL)),
42 "attr_color": "rgb(153, 153, 153)",
43 "trait_color": "rgb(57, 175, 215)",
44 "struct_color": "rgb(255, 160, 165)",
45 "enum_color": "rgb(255, 160, 165)",
46 "primitive_color": "rgb(255, 160, 165)",
47 "constant_color": "rgb(57, 175, 215)",
48 "fn_color": "rgb(253, 214, 135)",
49 "assoc_type_color": "rgb(57, 175, 215)",
56 "attr_color": "rgb(153, 153, 153)",
57 "trait_color": "rgb(183, 140, 242)",
58 "struct_color": "rgb(45, 191, 184)",
59 "enum_color": "rgb(45, 191, 184)",
60 "primitive_color": "rgb(45, 191, 184)",
61 "constant_color": "rgb(210, 153, 29)",
62 "fn_color": "rgb(43, 171, 99)",
63 "assoc_type_color": "rgb(210, 153, 29)",
70 "attr_color": "rgb(153, 153, 153)",
71 "trait_color": "rgb(110, 79, 201)",
72 "struct_color": "rgb(173, 55, 138)",
73 "enum_color": "rgb(173, 55, 138)",
74 "primitive_color": "rgb(173, 55, 138)",
75 "constant_color": "rgb(56, 115, 173)",
76 "fn_color": "rgb(173, 124, 55)",
77 "assoc_type_color": "rgb(56, 115, 173)",