Skip to content

Commit bfb16b9

Browse files
Add GUI test for javascript disabled display of settings page
1 parent e297bbf commit bfb16b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/rustdoc-gui/settings.goml

+6
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,9 @@ assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
6565
goto: file://|DOC_PATH|/settings.html
6666
wait-for: "#settings"
6767
assert-css: (".setting-line .toggle .slider", {"width": "45px", "margin-right": "20px"})
68+
69+
// We now check the display with JS disabled.
70+
assert-false: "noscript section"
71+
javascript: false
72+
reload:
73+
assert-css: ("noscript section", {"display": "block"})

0 commit comments

Comments
 (0)