rustdoc: add test case for source sidebar spacing

This commit is contained in:
Michael Howell 2022-07-02 09:42:49 -07:00
parent b80979416d
commit e710ac12fa

View file

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