Repository navigation
test: hold and step the shift-watch overshoot fault instead of letting it run free - #7508
Merged
Merged
Conversation
…g it run free #7492 made the overshoot carry run for 1600 ms so a slow host would read its past-place pose twice. That still depends on frame rate: a delayed browser can advance past the excursion before the watch samples it twice, and waiting for `playState === 'finished'` can't recover missed samples. The fixture now pauses the overshoot's carries, and the test steps them to poses 10, 20 and 5 px past the destination, holding each for four frames, then finishes them. In the key variant, Shift is pressed on a pose short of the destination, and the test waits ten frames for its rendering to end before drawing the overshoot. The fault case still requires a report naming `button#head`. The overshoot is back to the 200 ms duration the other faults use (1600 ms with a key), since stepping no longer depends on it. Behavior protected: a carry that draws a protected head past where its rise puts it fails the watch, now on any frame rate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_a_carry_draws_the_way_of_a_step_news_may_take's overshoot fault now holds its carries and steps them, so the watch reads each past-place pose however slowly the host draws frames. This follows the review comment on #7492: running the free overshoot for 1600 ms still depended on frame rate, since a delayed browser can advance past the excursion before the watch samples it twice.step_carriessets them to poses 10, 20 and 5 px past where the rise putsbutton#head(progress 0.5, 0.6 and 0.9 of the keyframes), holding each for four animation frames, then finishes them at the destination.moved-without-inputreport namingbutton#head. The shift watch itself is unchanged. The overshoot goes back to the 200 ms duration the other faults use (1600 ms with a key), since stepping no longer depends on it.Verification on Linux:
[overshoot-*-True],leaf-dev suite flake --copies 24 --workers 4 --load 2FalseTrue--cpu-throttle 3--cpu-throttle 8All 11 cases of the test pass unthrottled. As a control, stepping the same held carries only to poses short of the destination (progress 0.1, 0.2, 0.4) fails both overshoot cases with no
button#headreport. So the report comes from the overshoot, not from holding the carry.Refs #6744