Skip to content

Commit 1564305

Browse files
Add GUI test for settings in small device
1 parent 9d118c5 commit 1564305

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/rustdoc-gui/settings.goml

+9
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,12 @@ assert-false: "noscript section"
147147
javascript: false
148148
reload:
149149
assert-css: ("noscript section", {"display": "block"})
150+
javascript: true
151+
152+
// Check for the display on small screen
153+
show-text: true
154+
reload:
155+
size: (300, 1000)
156+
click: "#settings-menu"
157+
wait-for: "#settings"
158+
assert-css: ("#settings .slider", {"width": "45px"}, ALL)

0 commit comments

Comments
 (0)