1 // This test ensures that the correct style is applied to the rust logo in the sidebar.
2 goto: file://|DOC_PATH|/test_docs/index.html
4 // First we start with the dark theme.
6 "rustdoc-theme": "dark",
7 "rustdoc-preferred-dark-theme": "dark",
8 "rustdoc-use-system-theme": "false",
14 {"filter": "drop-shadow(rgb(255, 255, 255) 1px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px 1px 0px) drop-shadow(rgb(255, 255, 255) -1px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px -1px 0px)"},
17 // In the source view page now.
18 goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
21 "rustdoc-theme": "dark",
22 "rustdoc-preferred-dark-theme": "dark",
23 "rustdoc-use-system-theme": "false",
29 {"filter": "drop-shadow(rgb(255, 255, 255) 1px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px 1px 0px) drop-shadow(rgb(255, 255, 255) -1px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px -1px 0px)"},
32 // Then with the ayu theme.
34 "rustdoc-theme": "ayu",
35 "rustdoc-preferred-dark-theme": "ayu",
36 "rustdoc-use-system-theme": "false",
42 {"filter": "drop-shadow(rgb(255, 255, 255) 1px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px 1px 0px) drop-shadow(rgb(255, 255, 255) -1px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px -1px 0px)"},
45 // In the source view page now.
46 goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
49 "rustdoc-theme": "ayu",
50 "rustdoc-preferred-dark-theme": "ayu",
51 "rustdoc-use-system-theme": "false",
57 {"filter": "drop-shadow(rgb(255, 255, 255) 1px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px 1px 0px) drop-shadow(rgb(255, 255, 255) -1px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px -1px 0px)"},
60 // And finally with the light theme.
61 local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
69 // In the source view page now.
70 goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
72 local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}