From 37263a3e2b6c3e9e6cbf52360e641c6211d210c0 Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Tue, 10 Nov 2026 15:48:49 +0400 Subject: [PATCH] Give the draw ledger test a drawn mover instance A mover set lists as shown only once one of its drawn instances is. --- scripts/qa-strict-harness.test.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/qa-strict-harness.test.mjs b/scripts/qa-strict-harness.test.mjs index ae9467b15..0dd398b6b 100644 --- a/scripts/qa-strict-harness.test.mjs +++ b/scripts/qa-strict-harness.test.mjs @@ -645,12 +645,16 @@ test('selection readiness does not retry click or page errors', async (t) => { test('draw ledgers normalize all five families and compare absences and visibility', async (t) => { const engine = createFakeEngine(); - engine.movers.createSet({ + // A mover set counts as shown once one of its drawn instances is. + const points = engine.movers.createSet({ id: 'point', kind: 'point', capacity: 1, point: { sizePx: 4, color: [1, 1, 1, 1] }, }); + points.set(0, { position: { x: 1, y: 0, z: 0 } }); + points.setCount(1); + points.commit(); engine.lines.createLine({ id: 'line', color: [1, 1, 1, 1], widthPx: 1 }); engine.ground.createSet({ id: 'ground', kind: 'disc' }); engine.imagery.list = () => [{ id: 'tiles', kind: 'xyz', shown: true }];