fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// This test ensures that clicking on a method summary, but not on the "[-]", 2// doesn't toggle the <details>. 3go-to: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html" 4assert-attribute: (".impl-items .toggle", {"open": ""}) 5click: "h4.code-header" // This is the position of "pub" in "pub fn a_method" 6assert-attribute: (".impl-items .toggle", {"open": ""}) 7click-with-offset: ( 8 ".impl-items .toggle summary", 9 {"x": -24, "y": 8}, // This is the position of "[-]" next to that pub fn. 10) 11assert-attribute-false: (".impl-items .toggle", {"open": ""}) 12 13// Click the "Trait" part of "impl Trait" and verify it navigates. 14click: "#impl-Trait-for-Foo h3 a:first-of-type" 15assert-text: (".main-heading h1", "Trait lib2::Trait")