Repository navigation
test(samplesapp): Settle the shell layout guard on frames - #25647
Merged
Xiaoy312 merged 1 commit intoOct 23, 2026
Merged
Conversation
WaitForIdle can return before the SplitView close transition renders its first frame. The host then already sits at its final position, so the cleanup guard passed at once, and the next test's TestInitialize recorded the +320 frame that followed as its baseline. Record and compare the test host only once it has held still for a few rendered frames. Fixes #25276 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
ajpinedam
approved these changes
Oct 22, 2026
Contributor
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
1 of 5 tasks
2 of 5 tasks
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.
GitHub Issue: closes #25276
PR Type:
🏗️ Build or CI related changes (test infrastructure)
What changed? 🚀
Given_ShellLayoutchecks that every test leaves the runner's test host where it found it. On Android Skia group 3, that check fails in the cleanup ofWhen_Focus_Mode_Exit_Button_Idles_It_Hides_Until_Activityin about half the builds (137 of 268 since 2026-10-09). The message is almost alwaysThe test host was at 963,80,637,0 and is now at 643,80,637,0. The test body passes every time.Cause: when the SplitView's inline pane closes, its transition applies its KeyTime-0 frames at two different times:
Grid.Column/ColumnSpanchange (ObjectAnimationUsingKeyFrames) applies immediately.ContentTransform.TranslateX = OpenPaneLengthframe (DiscreteDoubleKeyFrame) applies on the nextCompositionTarget.Rendering.So the host first sits at its final position, jumps +320 on the next frame, and then slides back.
WaitForIdledoesn't wait for a frame. On the emulator,When_Browser_Toggled_Pane_And_Toggle_Follow_View_Modeltherefore passed its cleanup check on the first read, before the jump. The next test's[TestInitialize]then recorded the +320 frame as its baseline.The less frequent
When_Browser_Toggled_Pane_And_Toggle_Follow_View_Model Cleanupfailures (baseline 644–687) are the same problem one test earlier: its baseline catches the end of the slide left byGiven_ShellHomeView.When_Category_Card_Invoked_Browser_Opens_On_It.Change: the guard now records and compares the test host only once its bounds have stayed the same for 3 rendered frames. Cleanup also waits until that steady position matches the baseline. The 3 s timeout is unchanged.
Validation:
WaitForIdle. In 2 runs it read the final position before the jump.827, 827, 630, 565, 538, 520, 509, 507, 507, 507, 507, 507, settling at 507. The +320 position lasts two frames, which is why it waits for 3.Given_ShellLayoutplus the precedingGiven_ShellHomeViewtest, 10 iterations each: 17/17 passed.The framework-side gap (KeyTime-0 frames of one storyboard not applying together across animation types) is left alone here. Changing it would need WinUI ground truth first.
PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code