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"
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"
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", "[−]")