about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-11 20:56:07 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-11 20:56:16 +0200
commit1b0976c42f0dc83f3d963e014d685e579a7a9b33 (patch)
tree3fb29c39beb2e9584371549e8d551320b6be934f /src/test
parentd5a24b0a33bccb69e8ba19da42a15b5a69639e22 (diff)
downloadrust-1b0976c42f0dc83f3d963e014d685e579a7a9b33.tar.gz
rust-1b0976c42f0dc83f3d963e014d685e579a7a9b33.zip
Update toggle-docs GUI test to last version
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc-gui/toggle-docs.goml11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/test/rustdoc-gui/toggle-docs.goml b/src/test/rustdoc-gui/toggle-docs.goml
index 93bdf41a6a0..062bc7d51e5 100644
--- a/src/test/rustdoc-gui/toggle-docs.goml
+++ b/src/test/rustdoc-gui/toggle-docs.goml
@@ -1,7 +1,10 @@
 goto: file://|DOC_PATH|/test_docs/index.html
+assert: ("#main > details.top-doc", "open", "")
 click: "#toggle-all-docs"
-wait-for: 5000
-assert: ("#main > div.docblock.hidden-by-usual-hider")
+wait-for: 1000
+// This is now collapsed so there shouldn't be the "open" attribute on details.
+assert-false: ("#main > details.top-doc", "open", "")
 click: "#toggle-all-docs"
-wait-for: 5000
-assert: ("#main > div.docblock.hidden-by-usual-hider", 0)
+wait-for: 1000
+// Not collapsed anymore so the "open" attribute should be back.
+assert: ("#main > details.top-doc", "open", "")