File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,15 @@ click: ".setting-line:last-child .toggle .label"
122122assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
123123
124124// Make sure that "Disable keyboard shortcuts" actually took effect.
125- // The help popover won't exist yet.
125+ press-key: "Escape"
126126press-key: "?"
127+ assert-false: "#help-button .popover"
127128wait-for-css: ("#settings-menu .popover", {"display": "block"})
128129
129130// Now turn keyboard shortcuts back on, and see if they work.
130131click: ".setting-line:last-child .toggle .label"
131132assert-local-storage: {"rustdoc-disable-shortcuts": "false"}
133+ press-key: "Escape"
132134press-key: "?"
133135wait-for-css: ("#help-button .popover", {"display": "block"})
134136assert-css: ("#settings-menu .popover", {"display": "none"})
You can’t perform that action at this time.
0 commit comments