Skip to content

Commit 1b0976c

Browse files
Update toggle-docs GUI test to last version
1 parent d5a24b0 commit 1b0976c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/test/rustdoc-gui/toggle-docs.goml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
goto: file://|DOC_PATH|/test_docs/index.html
2+
assert: ("#main > details.top-doc", "open", "")
23
click: "#toggle-all-docs"
3-
wait-for: 5000
4-
assert: ("#main > div.docblock.hidden-by-usual-hider")
4+
wait-for: 1000
5+
// This is now collapsed so there shouldn't be the "open" attribute on details.
6+
assert-false: ("#main > details.top-doc", "open", "")
57
click: "#toggle-all-docs"
6-
wait-for: 5000
7-
assert: ("#main > div.docblock.hidden-by-usual-hider", 0)
8+
wait-for: 1000
9+
// Not collapsed anymore so the "open" attribute should be back.
10+
assert: ("#main > details.top-doc", "open", "")

0 commit comments

Comments
 (0)