Repository navigation
test(interaction-harness): a traced Paint names the node it painted - #10486
Conversation
traceRendering kept only each counted event's name and time. Its trace already names the node each Paint painted, and counts the elements each UpdateLayoutTree restyled, with its current categories. The counted events now carry both, as `node` and `elements`. A proof can then tell a late frame of its own animation from another element's paint.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. This is a draft from a fork, so once it is marked ready for review, a maintainer adds the ci:run label so CI runs.
traceRendering now keeps each Paint's node name and each style recalculation's element count. The new Chromium self-test fails against main's trace.ts with the message the description quotes, and passes on this head. No changes requested.
[Automated review]
|
/approve-spec 4a05620 |
Maintainer impact
traceRenderingcounts the rendering events in a window, but it kept only each event's name and time. A proof that finds one extra Paint in its window can't tell whether the page ran its own animation's frame late, as a starved runner does, or painted another element. The trace already holds both facts with its current categories: eachPaintnames the node it painted, and eachUpdateLayoutTreecounts the elements it restyled.Intended invariant
Every counted
PaintinRenderingTrace.eventscarries the trace's node name, and every countedUpdateLayoutTreecarries its element count. No other event carries either field, and the trace's categories don't change.Change
trace.ts: aRenderingEventtype with optionalnodeandelements, whichtraceRenderingfills from each event'sargs.data.nodeNameandargs.elementCount.Evidence
trace.ts(4ce3cbe, NOT FOR LANDING) fails with "Expected value: 5, Received array: [undefined, undefined]".#document,HTML, thenDIV id='patch'.Scope
Testing
pnpm review:pre: 0 findings, merge into main clean.