about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/javascript-disabled.goml
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-10-26 18:50:07 -0700
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-10-31 12:41:06 -0700
commita4fe76ff7cd66d4cad19c0f32a5d3c9efd1d4a60 (patch)
treeabd85926c8bc94a93309b740abadbd58d7b1a6e8 /src/test/rustdoc-gui/javascript-disabled.goml
parentc7e4740ec18996e082fe6e29ebf7efdc7dda418f (diff)
downloadrust-a4fe76ff7cd66d4cad19c0f32a5d3c9efd1d4a60.tar.gz
rust-a4fe76ff7cd66d4cad19c0f32a5d3c9efd1d4a60.zip
Hide search bar in noscript.css
Also, remove the highlighting of the search bar in disabled state. This
reduces flicker when loading a page.
Diffstat (limited to 'src/test/rustdoc-gui/javascript-disabled.goml')
-rw-r--r--src/test/rustdoc-gui/javascript-disabled.goml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/javascript-disabled.goml b/src/test/rustdoc-gui/javascript-disabled.goml
new file mode 100644
index 00000000000..1693f7b645f
--- /dev/null
+++ b/src/test/rustdoc-gui/javascript-disabled.goml
@@ -0,0 +1,6 @@
+// When JavaScript is disabled, we hide the search bar, because it
+// can't be used without JS.
+javascript: false
+
+goto: file://|DOC_PATH|/test_docs/struct.Foo.html
+assert-css: (".sub", {"display": "none"})