Repository navigation
test(interaction-harness): judge a play at the component's thresholds - #10501
Conversation
|
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. The pull request is a draft from a fork, so CI starts once it is marked ready for review and a maintainer adds the ci:run label.
The threshold judgment, the scroll-release read and the frame evidence hold up, and Core's shared filter test now reads every gesture with both filters, so the copied scroll release cannot drift silently.
- Non-blocking: the README says each pacing error names the frame gap, but
TouchLiftStallErrordoes not carry it (see the inline comment).
[Automated review]
b0e8e64 to
bb17e85
Compare
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. The pull request is a draft from a fork, so CI starts once it is marked ready for review and a maintainer adds the ci:run label.
The threshold judgment, the scroll-release read and the frame evidence hold up. TouchLiftStallError now carries the frame gap too, so every pacing error names it, and the new unit cases fail when the frame clause, the scroll read or the hold bound breaks.
- Non-blocking: the README and the
boundariesJSDoc call the hold the first finger's, butreadHoldspans from the play's first touch-down to its last lift; the two agree for the one-finger taps that use it today (see the inline comment).
[Automated review]
| name when the page read the release, or the first finger's hold from | ||
| touch-down to lift, on the other side of the threshold from the script. A |
There was a problem hiding this comment.
Non-blocking: readHold (touch.ts:617-634) measures from the play's first touch-down to the lift that ends the play, not one finger's hold. That is the same for the one-finger taps that pass holdMs today, but a multi-finger play whose last lift is another finger's is judged on that span. Consider "the hold from the first touch-down to the play's last lift" here and in the boundaries JSDoc (touch.ts:162-164).
|
/approve-spec 0f01815 |
There was a problem hiding this comment.
Changes requested: the threshold judgment, the scroll-release read and the frame evidence hold up on the merged head, but the description no longer matches the code after the merge with main.
-
After the merge, no Core proof passes
holdMs:mainnow stops a pager'sgoTomove at the touch, so the edge-button tap inSnapPaging.interaction.browser.spec.tslost itspaging.catchStopMsbound, yet the description still lists that tap under Change and cites "a 40 ms tap read as 141 ms crossed the 85 ms catch time" as impact; please update the description (drop the tap, mark the tap example and the run counts as measured before the merge, and sayholdMsis proven by the harness self-test), or bound a hold in a proof where the 85 ms catch still decides. -
Non-blocking: the README and the
boundariesJSDoc call the hold the first finger's, butreadHoldspans from the play's first touch-down to its last lift (see the earlier inline comment).
The one red WebKit interaction job failed a SnapPaging swipe on a page-stall rest fault that the base already checks, not on the new bounds; a rerun should clear it.
[Automated review]
|
@astracat-bot Fixed in the description, with no code change. The edge-button tap and its |
There was a problem hiding this comment.
Approved: the threshold judgment, the scroll-release read and the frame evidence hold up on this head, and the description matches it.
The required test check is red only because pr-interaction-webkit (1/5) failed SnapPaging's a short flick over 300 pt/s moves a page on the existing rest check (the page's own listeners held an event 30 ms), so that lane needs a rerun before this can merge.
Non-blocking: the boundaries docs still call the hold the first finger's, releaseUnread turns boundaries off without saying so (see the inline comments), and the commit message still says the catch tap is judged at catchStopMs, so drop that sentence when squashing.
[Automated review]
A WebKit page reads a touch's timing from when the touch arrives. A starved renderer can deliver a flick slower than its script, or a tap held longer, and the proof then judges a gesture the page never got. A play now names the thresholds its component decides on: `boundaries.releasePxPerS` and `boundaries.holdMs`. It fails by name when the page read the release, or the hold from touch-down to lift, on the other side of a threshold from the script. `release: 'scroll'` reads the release as Core's scrollVelocity does, and Core's shared test keeps the two equal. Each pacing error names the longest time the page drew no frame during the gesture. SnapPaging's flicks are judged at the paging's advanceSpeed with the scroll release, and its 40 ms catch tap at catchStopMs.
0f01815 to
f426ecf
Compare
|
/approve-spec f426ecf |
There was a problem hiding this comment.
Approved: the threshold judgment, the scroll-release read and the frame evidence hold up on this head, and every check passed.
Non-blocking:
- The
boundariesJSDoc and the README still call the hold the first finger's, whilereadHoldmeasures from the play's first touch-down to its last lift (see the earlier inline comment on the README). releaseUnread: trueorrealtime: falseturnsboundariesoff without an error; say so in theboundariesJSDoc and the README, or judge the bounds on every real-time WebKit play.- The commit message still ends with the 40 ms catch tap at
catchStopMs, which this head no longer judges; drop that sentence when squashing.
[Automated review]
| * did not receive. Only a driver whose page stamps touches on arrival | ||
| * (WebKit) judges them. |
There was a problem hiding this comment.
Non-blocking: these bounds are judged only when the play is judged at all (judges in playSteps is probe != null && realtime && !releaseUnread), so releaseUnread: true or realtime: false drops them with no error. The README tells a proof that reads no release from the lift to pass releaseUnread, so a tap proof that follows it and passes holdMs is never judged. Consider saying so here and in the README, or judging boundaries whenever the play is real-time on a stamping driver.
Maintainer impact
WebKit stamps a touch when it reaches the page. A renderer starved for 100 ms makes the page read a slower flick or a longer hold than the script plays, and the proof judges a gesture the page never received. In SnapPaging, a flick read at 208 px/s settled back under the 300 px/s advance speed. WebKit's touch command ignores a timestamp, and page-side dispatch runs on the same starved thread, so neither can set the gesture's timing.
Intended invariant
A play whose page read the release or the hold across the component's threshold from the script fails by name, never at the proof's assertion.
Change
PlayOptions.boundaries: {releasePxPerS?, holdMs?}: a WebKit play throwsTouchPacingErrororTouchPageStallErrorwhen the page read its release, or the hold from the first touch-down to the play's last lift, across a threshold from the script.PlayOptions.release: 'scroll'reads the release as Core'sscrollVelocitydoes; Core's shared test reads every gesture with both.TouchLiftStallErrorincluded, names the longest time the page drew no frame during the gesture.swipe()passesrelease: 'scroll'withpaging.release.advanceSpeed. No Core proof passesholdMs.Evidence
holdMsproof now that no Core proof passes it: a 40 ms tap whose touch-down the page holds 120 ms fails by name, frame gap over 100 ms, and passes without a bound.TouchPacingError, 20TouchPageStallError), none at the proof's assertion.Scope
Testing
tsc --noEmit: 0 errors. Prettier, ESLint 0,pnpm review:pre: 0 findings against main.