]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/jump-to-def-background.goml
Rollup merge of #100317 - kjetilkjeka:remove-nvptx32-logic, r=eddyb
[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: {
6     "rustdoc-theme": "dark",
7     "rustdoc-preferred-dark-theme": "dark",
8     "rustdoc-use-system-theme": "false",
9 }
10 // We reload the page so the local storage settings are being used.
11 reload:
12
13 assert-css: (
14     "body.source .example-wrap pre.rust a",
15     {"background-color": "rgb(51, 51, 51)"},
16     ALL,
17 )
18
19 // Set the theme to ayu.
20 local-storage: {
21     "rustdoc-theme": "ayu",
22     "rustdoc-preferred-dark-theme": "ayu",
23     "rustdoc-use-system-theme": "false",
24 }
25 // We reload the page so the local storage settings are being used.
26 reload:
27
28 assert-css: (
29     "body.source .example-wrap pre.rust a",
30     {"background-color": "rgb(51, 51, 51)"},
31     ALL,
32 )
33
34 // Set the theme to light.
35 local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
36 // We reload the page so the local storage settings are being used.
37 reload:
38
39 assert-css: (
40     "body.source .example-wrap pre.rust a",
41     {"background-color": "rgb(238, 238, 238)"},
42     ALL,
43 )