commit af2c2a5347dcda2fd67b01b0921ae8ef6a43bc94
parent aefaba192bbfe532620d25396d9aa289d7b4451f
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 14:19:36 -0500
stats: the test reads a state shown from the cut's first instant in init
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/umtool/report-to-video/stats.test.mjs b/umtool/report-to-video/stats.test.mjs
@@ -137,9 +137,11 @@ test("the page: one block per state, the numbers as the panel shows them, every
const schedule = estimateSchedule({ render: render(), timeline: ENTRIES, frameScan: OVERLAY });
const { init, cues } = statsCues(schedule);
assert.deepEqual(Object.keys(init).sort(), ["pn", "s0_0", "s0_1", "s1_0"]);
- // The first state shows at the clip's in, hides as the second shows.
+ // The first state shows at the clip's in -- here the cut's first instant, so it is up in init, on frame 0 (cue-start.mjs
+ // settleFirstFrame) -- and hides as the second shows.
const s00 = cues.filter((c) => c.k === "s0_0");
- assert.deepEqual(s00.map((c) => [c.at, c.from.autoAlpha, c.to.autoAlpha]), [[0, 0, 1], [6, 1, 0]]);
+ assert.equal(init.s0_0.autoAlpha, 1);
+ assert.deepEqual(s00.map((c) => [c.at, c.from.autoAlpha, c.to.autoAlpha]), [[6, 1, 0]]);
for (const c of cues) assert.ok(Object.keys(c.to).every((p) => p in c.from), JSON.stringify(c));
const html = statsHtml(schedule, render(), { fonts: { regular: "assets/DeckSans.ttf", bold: "assets/DeckSansBold.ttf" } });