]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/scrape-examples-toggle.goml
Rollup merge of #105944 - JohnTitor:issue-80816, r=compiler-errors
[rust.git] / src / test / rustdoc-gui / scrape-examples-toggle.goml
1 goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test_many.html"
2
3 // Clicking "More examples..." will open additional examples
4 assert-attribute-false: (".more-examples-toggle", {"open": ""})
5 click: ".more-examples-toggle"
6 assert-attribute: (".more-examples-toggle", {"open": ""})
7
8 // Toggling all docs will close additional examples
9 click: "#toggle-all-docs"
10 assert-attribute-false: (".more-examples-toggle", {"open": ""})
11
12 // After re-opening the docs, the additional examples should stay closed
13 click: "#toggle-all-docs"
14 assert-attribute-false: (".more-examples-toggle", {"open": ""})