@@ -6,17 +6,21 @@ assert-attribute: ("details:has(#trait-impl-link-in-summary)", {"open": ""})
6
6
// Collapse the trait impl doc. The actual clickable area is outside the element, hence offset.
7
7
click-with-offset: ("summary:has(#trait-impl-link-in-summary)", {"x": -15, "y": 5})
8
8
assert-attribute-false: ("details:has(#trait-impl-link-in-summary)", {"open": ""})
9
+ click-with-offset: ("summary:has(#trait-impl-link-in-summary)", {"x": -15, "y": 5})
10
+ assert-attribute: ("details:has(#trait-impl-link-in-summary)", {"open": ""})
9
11
10
12
// Clicks on the text should be ignored
11
13
click: "summary:has(#trait-impl-link-in-summary) > .impl"
12
- assert-window-property : ({"pageYOffset ": "0 "})
14
+ assert-attribute : ("details:has(#trait-impl-link-in-summary)", {"open ": ""})
13
15
14
16
// But links should still work
15
17
click: "summary:has(#trait-impl-link-in-summary) a:has(#trait-impl-link-in-summary)"
16
18
assert-window-property-false: ({"pageYOffset": "0"})
19
+ assert-attribute: ("details:has(#trait-impl-link-in-summary)", {"open": ""})
17
20
18
21
// As well as clicks on elements within links
19
22
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
20
23
assert-window-property: ({"pageYOffset": "0"})
21
24
click: "#trait-impl-link-in-summary"
22
25
assert-window-property-false: ({"pageYOffset": "0"})
26
+ assert-attribute: ("details:has(#trait-impl-link-in-summary)", {"open": ""})
0 commit comments