1 // This test check for headers text and background colors for the different themes.
2 goto: file://|DOC_PATH|/test_docs/struct.Foo.html
4 // This is needed so that the text color is computed.
8 local-storage: {"rustdoc-theme": "ayu", "rustdoc-preferred-dark-theme": "ayu", "rustdoc-use-system-theme": "false"}
11 assert-css: (".impl", {"color": "rgb(197, 197, 197)", "background-color": "rgba(0, 0, 0, 0)"}, ALL)
12 assert-css: (".impl .code-header", {"color": "rgb(230, 225, 207)", "background-color": "rgb(15, 20, 25)"}, ALL)
14 goto: file://|DOC_PATH|/test_docs/struct.Foo.html#impl
15 assert-css: ("#impl", {"color": "rgb(197, 197, 197)", "background-color": "rgba(255, 236, 164, 0.06)"})
17 goto: file://|DOC_PATH|/test_docs/struct.Foo.html#method.must_use
18 assert-css: ("#method\.must_use", {"color": "rgb(197, 197, 197)", "background-color": "rgba(255, 236, 164, 0.06)"}, ALL)
20 goto: file://|DOC_PATH|/test_docs/index.html
21 assert-css: (".small-section-header a", {"color": "rgb(197, 197, 197)"}, ALL)
23 goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
24 assert-css: (".section-header a", {"color": "rgb(57, 175, 215)"}, ALL)
27 local-storage: {"rustdoc-theme": "dark", "rustdoc-preferred-dark-theme": "dark", "rustdoc-use-system-theme": "false"}
28 goto: file://|DOC_PATH|/test_docs/struct.Foo.html
30 assert-css: (".impl", {"color": "rgb(221, 221, 221)", "background-color": "rgba(0, 0, 0, 0)"}, ALL)
31 assert-css: (".impl .code-header", {"color": "rgb(221, 221, 221)", "background-color": "rgb(53, 53, 53)"}, ALL)
33 goto: file://|DOC_PATH|/test_docs/struct.Foo.html#impl
34 assert-css: ("#impl", {"color": "rgb(221, 221, 221)", "background-color": "rgb(73, 74, 61)"})
36 goto: file://|DOC_PATH|/test_docs/struct.Foo.html#method.must_use
37 assert-css: ("#method\.must_use", {"color": "rgb(221, 221, 221)", "background-color": "rgb(73, 74, 61)"}, ALL)
39 goto: file://|DOC_PATH|/test_docs/index.html
40 assert-css: (".small-section-header a", {"color": "rgb(221, 221, 221)"}, ALL)
42 goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
43 assert-css: (".section-header a", {"color": "rgb(210, 153, 29)"}, ALL)
46 local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
49 goto: file://|DOC_PATH|/test_docs/struct.Foo.html
51 assert-css: (".impl", {"color": "rgb(0, 0, 0)", "background-color": "rgba(0, 0, 0, 0)"}, ALL)
52 assert-css: (".impl .code-header", {"color": "rgb(0, 0, 0)", "background-color": "rgb(255, 255, 255)"}, ALL)
54 goto: file://|DOC_PATH|/test_docs/struct.Foo.html#impl
55 assert-css: ("#impl", {"color": "rgb(0, 0, 0)", "background-color": "rgb(253, 255, 211)"})
57 goto: file://|DOC_PATH|/test_docs/struct.Foo.html#method.must_use
58 assert-css: ("#method\.must_use", {"color": "rgb(0, 0, 0)", "background-color": "rgb(253, 255, 211)"}, ALL)
60 goto: file://|DOC_PATH|/test_docs/index.html
61 assert-css: (".small-section-header a", {"color": "rgb(0, 0, 0)"}, ALL)
63 goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html
64 assert-css: (".section-header a", {"color": "rgb(56, 115, 173)"}, ALL)