]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-gui/ayu-code-tag-colors.goml
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / rustdoc-gui / ayu-code-tag-colors.goml
CommitLineData
136023e0
XL
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.
3goto: file://|DOC_PATH|/test_docs/enum.AnEnum.html
4// We need to show the text, otherwise the colors aren't "computed" by the web browser.
5show-text: true
6// We set the theme to ayu.
7local-storage: {"rustdoc-theme": "ayu", "rustdoc-preferred-dark-theme": "ayu", "rustdoc-use-system-theme": "false"}
8// We reload to get the text appearing and the theme applied.
9reload:
10
11assert-css: (".docblock code", {"color": "rgb(255, 180, 84)"}, ALL)
12// It includes variants and the "titles" as well (for example: "impl RefUnwindSafe for AnEnum").
13assert-css: ("div:not(.docblock) > code", {"color": "rgb(197, 197, 197)"}, ALL)