aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/test-app-util.mjs
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
commit716bc2353c5136564b9ed6c653219802577df97c (patch)
tree44156a4a7e0d9546969ac8ef360a093cb05715ad /scripts/theme-studio/test-app-util.mjs
parent0f67eb659d9a4295135be26187090d827bb44cf9 (diff)
downloaddotemacs-716bc2353c5136564b9ed6c653219802577df97c.tar.gz
dotemacs-716bc2353c5136564b9ed6c653219802577df97c.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-app-util.mjs')
0 files changed, 0 insertions, 0 deletions