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"
6 assert: "input.search-input:focus"
8 assert-false: "input.search-input:focus"
9 // We now check for the help popup.
11 assert-css: ("#help", {"display": "flex"})
12 assert-false: "#help.hidden"
14 assert-css: ("#help.hidden", {"display": "none"})
15 // Check for the themes list.
16 assert-css: ("#theme-choices", {"display": "none"})
18 assert-css: ("#theme-choices", {"display": "block"})
20 // We ensure that 't' hides back the menu.
21 assert-css: ("#theme-choices", {"display": "none"})
23 assert-css: ("#theme-choices", {"display": "block"})
25 // We ensure that 'Escape' hides the menu too.
26 assert-css: ("#theme-choices", {"display": "none"})