aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/danneel.txt
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
commit05697e837235a2ee5adf065ce2e70d35262632cc (patch)
treeb94192d2369d24400739cec75259d4e5b8f973d1 /scripts/theme-studio/danneel.txt
parent3c0f082f3232be03d287200374d72d1311aaeaba (diff)
downloaddotemacs-main.tar.gz
dotemacs-main.zip
refactor(theme-studio): hoist the browser-gate boilerplate into a gate() helperHEADmain
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/danneel.txt')
0 files changed, 0 insertions, 0 deletions