about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/toggle-docs.goml
diff options
context:
space:
mode:
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>2021-12-03 17:09:04 -0800
committerJacob Hoffman-Andrews <github@hoffman-andrews.com>2022-01-08 09:49:41 -0500
commit962c0a4ee59e3c1a2413e785694c9433ffd0a9e1 (patch)
treefb7535f5fc4d26d40c8192616aeb65bf5d9178e6 /src/test/rustdoc-gui/toggle-docs.goml
parenta77cc64af491a31db224109a76b9b81cd26cd07c (diff)
downloadrust-962c0a4ee59e3c1a2413e785694c9433ffd0a9e1.tar.gz
rust-962c0a4ee59e3c1a2413e785694c9433ffd0a9e1.zip
Make source links look cleaner
Change from syntaxy-looking [src] to the plain word "source".
Diffstat (limited to 'src/test/rustdoc-gui/toggle-docs.goml')
-rw-r--r--src/test/rustdoc-gui/toggle-docs.goml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/toggle-docs.goml b/src/test/rustdoc-gui/toggle-docs.goml
index eaa4c554d5a..e11aae21e3f 100644
--- a/src/test/rustdoc-gui/toggle-docs.goml
+++ b/src/test/rustdoc-gui/toggle-docs.goml
@@ -1,10 +1,13 @@
 goto: file://|DOC_PATH|/test_docs/index.html
 assert-attribute: ("#main-content > details.top-doc", {"open": ""})
+assert-text: ("#toggle-all-docs", "[−]")
 click: "#toggle-all-docs"
 wait-for: 1000
 // This is now collapsed so there shouldn't be the "open" attribute on details.
 assert-attribute-false: ("#main-content > details.top-doc", {"open": ""})
+assert-text: ("#toggle-all-docs", "[+]")
 click: "#toggle-all-docs"
 wait-for: 1000
 // Not collapsed anymore so the "open" attribute should be back.
 assert-attribute: ("#main-content > details.top-doc", {"open": ""})
+assert-text: ("#toggle-all-docs", "[−]")