1 // The ayu theme has a different color for the "<code>" tags in the doc blocks. We need to
2 // check that the rule isn't applied on other "<code>" elements.
4 // While we're at it, we also check it for the other themes.
5 goto: "file://" + |DOC_PATH| + "/test_docs/fn.foo.html"
6 // If the text isn't displayed, the browser doesn't compute color style correctly...
11 (theme, doc_code_color, doc_inline_code_color),
14 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
15 // We reload the page so the local storage settings are being used.
17 ("assert-css", (".docblock pre > code", {"color": |doc_code_color|}, ALL)),
18 ("assert-css", (".docblock > p > code", {"color": |doc_inline_code_color|}, ALL)),
22 call-function: ("check-colors", ("ayu", "rgb(230, 225, 207)", "rgb(255, 180, 84)"))
23 call-function: ("check-colors", ("dark", "rgb(221, 221, 221)", "rgb(221, 221, 221)"))
24 call-function: ("check-colors", ("light", "rgb(0, 0, 0)", "rgb(0, 0, 0)"))