Skip to content

Commit e710ac1

Browse files
committed
rustdoc: add test case for source sidebar spacing
1 parent b809794 commit e710ac1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/rustdoc-gui/source-code-page.goml

+3
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ assert-property: ("#source-sidebar details:first-of-type", {"open": "true"})
4444
// And now we collapse it again.
4545
click: "#source-sidebar details:first-of-type > summary"
4646
assert-property: ("#source-sidebar details:first-of-type", {"open": "false"})
47+
48+
// Check the spacing.
49+
assert-css: ("#source-sidebar > details.dir-entry", {"padding-left": "4px"})

0 commit comments

Comments
 (0)