]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/toggle-docs.goml
Do not suggest using a const parameter when there are bounds on an unused type parameter
[rust.git] / src / test / rustdoc-gui / toggle-docs.goml
1 // Checks that the documentation toggles have the correct position, style and work as expected.
2 goto: file://|DOC_PATH|/test_docs/index.html
3 assert-attribute: ("#main-content > details.top-doc", {"open": ""})
4 assert-text: ("#toggle-all-docs", "[−]")
5 click: "#toggle-all-docs"
6 wait-for: 1000
7 // This is now collapsed so there shouldn't be the "open" attribute on details.
8 assert-attribute-false: ("#main-content > details.top-doc", {"open": ""})
9 assert-text: ("#toggle-all-docs", "[+]")
10 click: "#toggle-all-docs"
11 wait-for: 1000
12 // Not collapsed anymore so the "open" attribute should be back.
13 assert-attribute: ("#main-content > details.top-doc", {"open": ""})
14 assert-text: ("#toggle-all-docs", "[−]")