about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-11-06 20:20:43 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-11-06 20:20:43 +0100
commit0e23d90e26571fc53f0263858d9558d03de6cd30 (patch)
treebd8b83711392187b111f1e460ee0c03b1a8436bb
parent24d86a1c086371aa9185a231d37e0ed71fa27e34 (diff)
Extend rust-logo GUI test to check there is no filter for other logos
-rw-r--r--src/test/rustdoc-gui/rust-logo.goml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/rust-logo.goml b/src/test/rustdoc-gui/rust-logo.goml
index 6c8dc859419..816cc9abd69 100644
--- a/src/test/rustdoc-gui/rust-logo.goml
+++ b/src/test/rustdoc-gui/rust-logo.goml
@@ -17,6 +17,15 @@ define-function: (
         ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
         ("reload"),
         ("assert-css", (".rust-logo", {"filter": |filter|})),
+        // Now we check that the non-rust logos don't have a CSS filter set.
+        ("goto", "file://" + |DOC_PATH| + "/huge_logo/index.html"),
+        // Changing theme on the new page (again...).
+        ("local-storage", {"rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false"}),
+        ("reload"),
+        // Check there is no rust logo
+        ("assert-false", ".rust-logo"),
+        // Check there is no filter.
+        ("assert-css", (".sidebar .logo-container img", {"filter": "none"})),
     ],
 )