aboutsummaryrefslogtreecommitdiff
path: root/tests/test-selection-framework-keybindings.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-20 17:30:51 -0400
committerCraig Jennings <c@cjennings.net>2026-06-20 17:30:51 -0400
commit7f3932ef6adfb817e0f4b5bcfebd6b4eb54f5372 (patch)
tree55008e7e9b484946a0d4169159661fcb186e3bfc /tests/test-selection-framework-keybindings.el
parentc51f24d4a5ff055bd825dc7383a981796def97fc (diff)
downloaddotemacs-7f3932ef6adfb817e0f4b5bcfebd6b4eb54f5372.tar.gz
dotemacs-7f3932ef6adfb817e0f4b5bcfebd6b4eb54f5372.zip
refactor(theme-studio): hoist the browser-gate boilerplate into a gate() helper
The 38 standard gates each repeated the same ok flag, notes list, A(cond,note) collector, and verdict postamble (title + result div), with the note separator drifted across them (' | ' vs ' fails='). gate(id, body) owns all of it and standardizes the note format to ' fails=note1,note2'; the gate name is the hash uppercased, the div id is the hash, matching what each gate set by hand. Each call site keeps its literal location.hash==='#NAMEtest' (run-tests.sh greps that to discover gates). Six custom gates (selftest, cursortest, planetest, oklchtest, readouttest, savetest) stay inline. Verified: all 44 gates green, and a forced A(false) in a converted gate still reports FAIL (gate() can't manufacture greens).
Diffstat (limited to 'tests/test-selection-framework-keybindings.el')
0 files changed, 0 insertions, 0 deletions