]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/toggle-docs.goml
Rollup merge of #91780 - cjgillot:localize, r=Mark-Simulacrum
[rust.git] / src / test / rustdoc-gui / toggle-docs.goml
1 goto: file://|DOC_PATH|/test_docs/index.html
2 assert-attribute: ("#main-content > details.top-doc", {"open": ""})
3 click: "#toggle-all-docs"
4 wait-for: 1000
5 // This is now collapsed so there shouldn't be the "open" attribute on details.
6 assert-attribute-false: ("#main-content > details.top-doc", {"open": ""})
7 click: "#toggle-all-docs"
8 wait-for: 1000
9 // Not collapsed anymore so the "open" attribute should be back.
10 assert-attribute: ("#main-content > details.top-doc", {"open": ""})