fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// The `impl Foo` heading underneath `Implementations` has a § 2// anchor to its left (used for linking to that heading). The anchor only shows 3// up when hovering the `impl Foo`. This test ensures there's no gap between the 4// anchor and the `impl Foo`. If there were a gap, this would cause an annoying 5// problem: you hover `impl Foo` to see the anchor, then when you move your 6// mouse to the left, the anchor disappears before you reach it. 7go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html" 8// We check that ".item-info" is bigger than its content. 9move-cursor-to: ".impl" 10assert-property: (".impl > a.anchor", {"offsetWidth": "8"}) 11assert-css: (".impl > a.anchor", {"left": "-8px"})