]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/jump-to-def-background.goml
Rollup merge of #88370 - Seppel3210:master, r=dtolnay
[rust.git] / src / test / rustdoc-gui / jump-to-def-background.goml
1 // We check the background color on the jump to definition links in the source code page.
2 goto: file://|DOC_PATH|/src/link_to_definition/lib.rs.html
3
4 // Set the theme to dark.
5 local-storage: {"rustdoc-theme": "dark", "rustdoc-preferred-dark-theme": "dark", "rustdoc-use-system-theme": "false"}
6 // We reload the page so the local storage settings are being used.
7 reload:
8
9 assert-css: ("body.source .example-wrap pre.rust a", {"background-color": "rgb(51, 51, 51)"}, ALL)
10
11 // Set the theme to ayu.
12 local-storage: {"rustdoc-theme": "ayu", "rustdoc-preferred-dark-theme": "ayu", "rustdoc-use-system-theme": "false"}
13 // We reload the page so the local storage settings are being used.
14 reload:
15
16 assert-css: ("body.source .example-wrap pre.rust a", {"background-color": "rgb(51, 51, 51)"}, ALL)
17
18 // Set the theme to light.
19 local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
20 // We reload the page so the local storage settings are being used.
21 reload:
22
23 assert-css: ("body.source .example-wrap pre.rust a", {"background-color": "rgb(238, 238, 238)"}, ALL)