1 // This test check for headers text and background colors for the different themes.
5 (theme, color, code_header_color, focus_background_color, headings_color),
7 go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
8 // This is needed so that the text color is computed.
10 set-local-storage: {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}
14 {"color": |color|, "background-color": "rgba(0, 0, 0, 0)"},
19 {"color": |code_header_color|, "background-color": "rgba(0, 0, 0, 0)"},
22 go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#impl-Foo"
25 {"color": |color|, "background-color": |focus_background_color|},
27 go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#method.must_use"
30 {"color": |color|, "background-color": |focus_background_color|},
33 go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
34 assert-css: (".small-section-header a", {"color": |color|}, ALL)
35 go-to: "file://" + |DOC_PATH| + "/test_docs/struct.HeavilyDocumentedStruct.html"
36 // We select headings (h2, h3, h...).
37 assert-css: (".docblock > :not(p) > a", {"color": |headings_color|}, ALL)
45 "color": "rgb(197, 197, 197)",
46 "code_header_color": "rgb(230, 225, 207)",
47 "focus_background_color": "rgba(255, 236, 164, 0.06)",
48 "headings_color": "rgb(57, 175, 215)",
55 "color": "rgb(221, 221, 221)",
56 "code_header_color": "rgb(221, 221, 221)",
57 "focus_background_color": "rgb(73, 74, 61)",
58 "headings_color": "rgb(210, 153, 29)",
65 "color": "rgb(0, 0, 0)",
66 "code_header_color": "rgb(0, 0, 0)",
67 "focus_background_color": "rgb(253, 255, 211)",
68 "headings_color": "rgb(56, 115, 173)",