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

15 lines
705 B
Plaintext
Raw Normal View History

2022-01-21 20:41:47 +01:00
// Checks that the documentation toggles have the correct position, style and work as expected.
goto: file://|DOC_PATH|/test_docs/index.html
2021-11-29 17:14:05 +01:00
assert-attribute: ("#main-content > details.top-doc", {"open": ""})
assert-text: ("#toggle-all-docs", "[]")
2021-02-21 14:25:12 +01:00
click: "#toggle-all-docs"
wait-for: 1000
// This is now collapsed so there shouldn't be the "open" attribute on details.
2021-11-29 17:14:05 +01:00
assert-attribute-false: ("#main-content > details.top-doc", {"open": ""})
assert-text: ("#toggle-all-docs", "[+]")
2021-02-21 14:25:12 +01:00
click: "#toggle-all-docs"
wait-for: 1000
// Not collapsed anymore so the "open" attribute should be back.
2021-11-29 17:14:05 +01:00
assert-attribute: ("#main-content > details.top-doc", {"open": ""})
assert-text: ("#toggle-all-docs", "[]")