aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/test_generate.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-14 21:54:30 -0500
committerCraig Jennings <c@cjennings.net>2026-06-14 21:54:30 -0500
commit318b1bb4c2c4e8bdc1f29158629d8637146636de (patch)
tree6d39ba2b7762ae0cefe27740fda78dcae26d1a66 /scripts/theme-studio/test_generate.py
parent16c210793f88080af062aaa60cb8e3d2a52b6386 (diff)
downloaddotemacs-318b1bb4c2c4e8bdc1f29158629d8637146636de.tar.gz
dotemacs-318b1bb4c2c4e8bdc1f29158629d8637146636de.zip
fix(theme-studio): make broken browser gates fail instead of silently passing
run-tests.sh scored each browser gate by grepping the dumped DOM for the gate name and taking the first match. A gate that throws before setting its verdict left its own inlined source as the first match, and that source, "GATENAME '+(ok?'PASS':'FAIL')", contains the literal PASS, so the run reported green for a gate that never produced a verdict. The matcher now requires a resolved "GATENAME PASS" or "GATENAME FAIL". That exposed two gates that had been throwing unnoticed. baseedittest still referenced fam after the variable was renamed to column, so it ReferenceError'd. columntest read getComputedStyle on a palette chip captured before a re-render detached it, so the match returned null and threw. baseedittest now uses column, and columntest re-queries the live chip by its selection index.
Diffstat (limited to 'scripts/theme-studio/test_generate.py')
0 files changed, 0 insertions, 0 deletions