aboutsummaryrefslogtreecommitdiff
path: root/tests/test-selection-framework-keybindings.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
commit229df4ba9bd53254c8473207c5661730bb086fcf (patch)
tree5194b384d5588376c0c1ea1014ff165dddb6ce2b /tests/test-selection-framework-keybindings.el
parentbe224a18db082302b0bb685cf9ab5cd6e3a3d967 (diff)
downloaddotemacs-229df4ba9bd53254c8473207c5661730bb086fcf.tar.gz
dotemacs-229df4ba9bd53254c8473207c5661730bb086fcf.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-selection-framework-keybindings.el')
0 files changed, 0 insertions, 0 deletions