aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-ordering-unarrayify.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 17:17:55 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 17:17:55 -0500
commit040038d42f82d48c2e6b57a0d4494d9aabf453a9 (patch)
treef28b9f0c681e1828422e0b19adf56cc2c3d8e389 /tests/test-custom-ordering-unarrayify.el
parent2c5d1c518addd736f618e0441930062d97152760 (diff)
downloaddotemacs-040038d42f82d48c2e6b57a0d4494d9aabf453a9.tar.gz
dotemacs-040038d42f82d48c2e6b57a0d4494d9aabf453a9.zip
test(keyboard-compat): cover the terminal and GUI setup functions
`cj/keyboard-compat-terminal-setup` (8 `define-key`s into `input-decode-map` for arrow escape sequences) and `cj/keyboard-compat-gui-setup` (18 `M-<UPPER>` → `M-S-<lower>` translations into `key-translation-map`) had no tests — that's the bulk of the module's executable lines. I added `tests/test-keyboard-compat-setup.el` — 7 ERT tests that `let`-bind those keymaps to fresh copies, stub `env-terminal-p` / `env-gui-p`, and check the decode/translate entries land, with completeness loops over all 8 arrow sequences and all 18 Meta-Shift letters, plus the gate-off boundary for each. `cj/--icon-blank-in-terminal` was already covered. `lookup-key` on an ESC-prefixed string can return a meta-prefix event count instead of nil, so the "no-op when not on a terminal" case asserts the keymap is still empty rather than checking individual lookups.
Diffstat (limited to 'tests/test-custom-ordering-unarrayify.el')
0 files changed, 0 insertions, 0 deletions