Skip to content

Commit 4516a5b

Browse files
better checks
1 parent b8d5554 commit 4516a5b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/rustdoc-gui/collapse-trait-impl.goml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@ assert-attribute: ("details:has(#trait-impl-link-in-summary)", {"open": ""})
66
// Collapse the trait impl doc. The actual clickable area is outside the element, hence offset.
77
click-with-offset: ("summary:has(#trait-impl-link-in-summary)", {"x": -15, "y": 5})
88
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": ""})
911

1012
// Clicks on the text should be ignored
1113
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": ""})
1315

1416
// But links should still work
1517
click: "summary:has(#trait-impl-link-in-summary) a:has(#trait-impl-link-in-summary)"
1618
assert-window-property-false: ({"pageYOffset": "0"})
19+
assert-attribute: ("details:has(#trait-impl-link-in-summary)", {"open": ""})
1720

1821
// As well as clicks on elements within links
1922
go-to: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
2023
assert-window-property: ({"pageYOffset": "0"})
2124
click: "#trait-impl-link-in-summary"
2225
assert-window-property-false: ({"pageYOffset": "0"})
26+
assert-attribute: ("details:has(#trait-impl-link-in-summary)", {"open": ""})

0 commit comments

Comments
 (0)