about summary refs log tree commit diff
path: root/src/test/rustdoc-gui
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-06-12 22:19:26 -0700
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-06-16 10:24:59 -0700
commit62658bfc227dee9d8ac4f5d207a8a59bc315977c (patch)
treeef5c30c29d77e95cc03bdeadd6a46197743c0121 /src/test/rustdoc-gui
parent8daad743c4bb941536860b4df20111cb71b8c777 (diff)
downloadrust-62658bfc227dee9d8ac4f5d207a8a59bc315977c.tar.gz
rust-62658bfc227dee9d8ac4f5d207a8a59bc315977c.zip
Open trait implementations' toggles by default.
This makes it possible to use Ctrl-F to find methods defined in traits.
Diffstat (limited to 'src/test/rustdoc-gui')
-rw-r--r--src/test/rustdoc-gui/toggled-open-implementations.goml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/toggled-open-implementations.goml b/src/test/rustdoc-gui/toggled-open-implementations.goml
new file mode 100644
index 00000000000..96a5492edef
--- /dev/null
+++ b/src/test/rustdoc-gui/toggled-open-implementations.goml
@@ -0,0 +1,5 @@
+// This tests that the "implementations" section on struct/enum pages
+// has all the implementations toggled open by default, so users can
+// find method names in those implementations with Ctrl-F.
+goto: file://|DOC_PATH|/test_docs/struct.Foo.html
+assert: (".rustdoc-toggle.implementors-toggle", "open", "")