File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 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> {
609609 </a>\
610610 </span>\
611611 </div>\
612+ <noscript>\
613+ <section>\
614+ You need to enable Javascript be able to update your settings.\
615+ </section>\
616+ </noscript>\
612617 <link rel=\" stylesheet\" type=\" text/css\" \
613618 href=\" {root_path}settings{suffix}.css\" >\
614619 <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"}
6565goto: file://|DOC_PATH|/settings.html
6666wait-for: "#settings"
6767assert-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