]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc-gui/toggle-docs.goml
Rollup merge of #86424 - calebcartwright:rustfmt-mod-resolution, r=Mark-Simulacrum
[rust.git] / src / test / rustdoc-gui / toggle-docs.goml
index 1ded33f659d3c6fb1e5de86eddc5f48cb0e11115..601998b7bd28ac26dc9b2f5a5a8eb84da4e67d52 100644 (file)
@@ -1,7 +1,10 @@
-goto: file://|DOC_PATH|/index.html
+goto: file://|DOC_PATH|/test_docs/index.html
+assert-attr: ("#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-attr-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-attr: ("#main > details.top-doc", {"open": ""})