]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-gui/toggle-click-deadspace.goml
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / rustdoc-gui / toggle-click-deadspace.goml
CommitLineData
3c0e092e
XL
1// This test ensures that clicking on a method summary, but not on the "[-]",
2// doesn't toggle the <details>.
3goto: file://|DOC_PATH|/lib2/struct.Foo.html
4assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})
5click: "h4.code-header" // This is the position of "pub" in "pub fn a_method"
6assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})
7click: ".impl-items .rustdoc-toggle summary::before" // This is the position of "[-]" next to that pub fn.
8assert-attribute-false: (".impl-items .rustdoc-toggle", {"open": ""})
9
10// Click the "Trait" part of "impl Trait" and verify it navigates.
11click: "#impl-Trait h3 a:first-of-type"
12assert-text: (".fqn .in-band", "Trait lib2::Trait")