File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -609,6 +609,11 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
609
609
</a>\
610
610
</span>\
611
611
</div>\
612
+ <noscript>\
613
+ <section>\
614
+ You need to enable Javascript be able to update your settings.\
615
+ </section>\
616
+ </noscript>\
612
617
<link rel=\" stylesheet\" type=\" text/css\" \
613
618
href=\" {root_path}settings{suffix}.css\" >\
614
619
<script defer src=\" {root_path}settings{suffix}.js\" ></script>",
Original file line number Diff line number Diff line change @@ -65,3 +65,9 @@ assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
65
65
goto: file://|DOC_PATH|/settings.html
66
66
wait-for: "#settings"
67
67
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"})
You can’t perform that action at this time.
0 commit comments