]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/toggle-click-deadspace.goml
Rollup merge of #91137 - jyn514:contributing, r=spastorino
[rust.git] / src / test / rustdoc-gui / toggle-click-deadspace.goml
1 // This test ensures that clicking on a method summary, but not on the "[-]",
2 // doesn't toggle the <details>.
3 goto: file://|DOC_PATH|/test_docs/struct.Foo.html
4 assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})
5 click: "h4.code-header" // This is the position of "pub" in "pub fn a_method"
6 assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})
7 click: ".impl-items .rustdoc-toggle summary::before" // This is the position of "[-]" next to that pub fn.
8 assert-attribute-false: (".impl-items .rustdoc-toggle", {"open": ""})