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"
8 // Going to the doc page.
9 ("goto", "file://" + |DOC_PATH| + "/test_docs/index.html"),
11 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
13 ("assert-css", (".rust-logo", {"filter": |filter|})),
14 // Going to the source code page.
15 ("goto", "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"),
16 // Changing theme (since it's local files, the local storage works by folder).
17 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
19 ("assert-css", (".rust-logo", {"filter": |filter|})),
20 // Now we check that the non-rust logos don't have a CSS filter set.
21 ("goto", "file://" + |DOC_PATH| + "/huge_logo/index.html"),
22 // Changing theme on the new page (again...).
23 ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
25 // Check there is no rust logo
26 ("assert-false", ".rust-logo"),
27 // Check there is no filter.
28 ("assert-css", (".sidebar .logo-container img", {"filter": "none"})),
34 ("ayu", "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)"),
38 ("dark", "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)"),