diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-20 17:30:51 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-20 17:30:51 -0400 |
| commit | 7f3932ef6adfb817e0f4b5bcfebd6b4eb54f5372 (patch) | |
| tree | 55008e7e9b484946a0d4169159661fcb186e3bfc /modules/show-kill-ring.el | |
| parent | c51f24d4a5ff055bd825dc7383a981796def97fc (diff) | |
| download | dotemacs-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 'modules/show-kill-ring.el')
0 files changed, 0 insertions, 0 deletions
