aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/build-theme.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
commitfd1654d3179cc6aa6ae59b2a1569e1c024a326e6 (patch)
treeab80bdadae2070db69e36d6ae88be86284885d76 /scripts/theme-studio/build-theme.el
parent5798ce4ef8a13287a4192cd9f09e13750aaab445 (diff)
downloaddotemacs-fd1654d3179cc6aa6ae59b2a1569e1c024a326e6.tar.gz
dotemacs-fd1654d3179cc6aa6ae59b2a1569e1c024a326e6.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 'scripts/theme-studio/build-theme.el')
0 files changed, 0 insertions, 0 deletions