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 | e03a3fa2e8fe080dbf8c7f84531bdb10c8a957cb (patch) | |
| tree | f8388ad5d0861ccfc285d9a58977502366d509e9 /scripts/theme-studio/capture-default-faces.py | |
| parent | a4d15c5598d2faed55cf0f3486025bd51f33debc (diff) | |
| download | dotemacs-e03a3fa2e8fe080dbf8c7f84531bdb10c8a957cb.tar.gz dotemacs-e03a3fa2e8fe080dbf8c7f84531bdb10c8a957cb.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/capture-default-faces.py')
0 files changed, 0 insertions, 0 deletions
