Skip to content

Commit 0e23d90

Browse files
Extend rust-logo GUI test to check there is no filter for other logos
1 parent 24d86a1 commit 0e23d90

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/test/rustdoc-gui/rust-logo.goml

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ define-function: (
1717
("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
1818
("reload"),
1919
("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"}),
24+
("reload"),
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"})),
2029
],
2130
)
2231

0 commit comments

Comments
 (0)