ElyMark: the probe checks every task box, ticked or not (R2.14)
This commit is contained in:
7 files changed
+23
-8
No files matched your search
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user