Skip to content

Commit be56963

Browse files
Add test for source sidebar toggle
1 parent ad970a7 commit be56963

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/test/rustdoc-gui/sidebar-source-code-display.goml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,16 @@ wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1})
125125

126126
// We now check it takes the full size of the display.
127127
assert-property: ("body", {"clientWidth": "500", "clientHeight": "700"})
128-
assert-property: (".sidebar", {"clientWidth": "500", "clientHeight": "700"})
128+
assert-property: (".sidebar", {"clientWidth": "500", "clientHeight": "700"})
129+
130+
// We now check the display of the toggle once the sidebar is expanded.
131+
assert-property: ("#sidebar-toggle", {"clientWidth": "500", "clientHeight": "39"})
132+
assert-css: (
133+
"#sidebar-toggle",
134+
{
135+
"border-top-width": "0px",
136+
"border-right-width": "0px",
137+
"border-left-width": "0px",
138+
"border-bottom-width": "1px",
139+
},
140+
)

0 commit comments

Comments
 (0)