ElyMark: the probe checks every task box, ticked or not (R2.14)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 08:09:54 -04:00
1 parent 511fb8d4eb
commit 9a126611a2
7 files changed
+23 -8

No files matched your search

+4 -4
View File
@@ -62,10 +62,10 @@ for step in ("visual", "themed", "preview"):
for key, value in [("title", "Title"), ("heading", True), ("inline", True), ("display", True), ("tasks", 2),
("cells", 2), ("notes", 1), ("font", True), ("editors", 1)]:
want(step, key, value)
# The task box: text-sized, centred on its line.
width, height, off = seen[step]["box"]
if abs(width - 1) > 0.01 or abs(height - 1) > 0.01 or abs(off) > 1:
sys.exit(f"FAIL: {step} task box is {seen[step]['box']}")
# Every task box: text-sized, centred on its line.
for width, height, off in seen[step]["boxes"]:
if abs(width - 1) > 0.01 or abs(height - 1) > 0.01 or abs(off) > 1:
sys.exit(f"FAIL: {step} task boxes are {seen[step]['boxes']}")
blocks = seen[step]["blocks"]
if [block["language"] for block in blocks] != languages:
sys.exit(f"FAIL: {step} blocks are {blocks}")