fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// This test ensures that the element corresponding to the hash is displayed. 2go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html#method.borrow" 3// In the blanket implementations list, "Borrow" is the second one, hence the ":nth(2)". 4assert-attribute: ("#blanket-implementations-list > details:nth-child(2)", {"open": ""}) 5// We first check that the impl block is open by default. 6assert-attribute: ("#implementations-list details", {"open": ""}) 7// To ensure that we will click on the currently hidden method. 8assert-text: (".sidebar-elems section .block li > a", "must_use") 9click: ".sidebar-elems section .block li > a" 10// We check that the impl block was opened as expected so that we can see the method. 11assert-attribute: ("#implementations-list > details", {"open": ""})