From e710ac12fac9d650fb53b27259332cabdc9416f5 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Sat, 2 Jul 2022 09:42:49 -0700 Subject: rustdoc: add test case for source sidebar spacing --- src/test/rustdoc-gui/source-code-page.goml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test/rustdoc-gui') diff --git a/src/test/rustdoc-gui/source-code-page.goml b/src/test/rustdoc-gui/source-code-page.goml index 05b0e809bca..581f826a3d9 100644 --- a/src/test/rustdoc-gui/source-code-page.goml +++ b/src/test/rustdoc-gui/source-code-page.goml @@ -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"}) -- cgit 1.4.1-3-g733a5