1 goto: file://|DOC_PATH|/test_docs/struct.Foo.html
3 assert-attribute: (".top-doc", {"open": ""})
4 click: (4, 260) // This is the position of the top doc comment toggle
5 assert-attribute-false: (".top-doc", {"open": ""})
7 assert-attribute: (".top-doc", {"open": ""})
8 // To ensure that the toggle isn't over the text, we check that the toggle isn't clicked.
10 assert-attribute: (".top-doc", {"open": ""})
12 // Assert the position of the toggle on the top doc block.
13 assert-position: (".top-doc summary::before", {"x": 4})
14 // Assert the position of the toggle on the impl block.
15 assert-position: ("#implementations + details > summary::before", {"x": 4})
16 // Assert the position of the toggle on a method.
18 "#trait-implementations-list .impl-items .method-toggle > summary::before",
22 // Now we do the same but with a little bigger width
24 assert-attribute: (".top-doc", {"open": ""})
25 click: (4, 260) // New Y position since all search elements are back on one line.
26 assert-attribute-false: (".top-doc", {"open": ""})
28 assert-attribute: (".top-doc", {"open": ""})
29 // To ensure that the toggle isn't over the text, we check that the toggle isn't clicked.
31 assert-attribute: (".top-doc", {"open": ""})