]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/shortcuts.goml
Rollup merge of #100567 - Rageking8:fix-100563, r=wesleywiser
[rust.git] / src / test / rustdoc-gui / shortcuts.goml
1 // Check that the various shortcuts are working.
2 goto: file://|DOC_PATH|/test_docs/index.html
3 // We first check that the search input isn't already focused.
4 assert-false: "input.search-input:focus"
5 press-key: "s"
6 assert: "input.search-input:focus"
7 press-key: "Escape"
8 assert-false: "input.search-input:focus"
9 // We now check for the help popup.
10 press-key: "?"
11 assert-css: ("#help-button .popover", {"display": "block"})
12 press-key: "Escape"
13 assert-css: ("#help-button .popover", {"display": "none"})