Repository navigation
test: Force layout in When_Template_Changed_After_Loaded - #26702
Merged
Xiaoy312 merged 1 commit intoNov 24, 2026
Merged
Conversation
Native WinUI marks the control dirty when its Template changes but doesn't schedule a layout pass, so the new template was never applied after WaitForIdle and the test failed deterministically on the WinAppSDK leg. UpdateLayout only measures dirty elements, so the test still fails on Uno without the Template AffectsMeasure fix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
This pull request is merged. |
ramezgerges
approved these changes
Nov 24, 2026
2 of 5 tasks
ajpinedam
approved these changes
Nov 24, 2026
Xiaoy312
enabled auto-merge
November 24, 2026 21:47
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Contributor
|
The build 248942 found UI Test snapshots differences: Details
|
Xiaoy312
deleted the
dev/xygu/20261124/fix-template-changed-winui-test
branch
November 24, 2026 22:31
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 #26701
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
Given_Control.When_Template_Changed_After_Loaded(added in #26556 for #25217) fails deterministically on the WinAppSDK runtime-test leg: 0/9 on master and 1/18 on PRs since it was added. It passes on every Uno leg (281/281).On native WinUI, a
Templatechange marks the control dirty but no layout pass gets scheduled. A diagnostic run on WinAppSDK showed:Template = null+WaitForIdle, the template children are gone butDesiredSizeis still the stale 40×20, so no layout ran.WaitForIdle, there are still no children: the template isn't applied.UpdateLayout()applies it at once (ActualWidth60).The test now calls
SUT.UpdateLayout()before its asserts.UpdateLayoutonly measures dirty elements, so the test still covers the Uno fix:AffectsMeasureremoved fromControl.TemplatePropertyTest-only change, no product code touched.
PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code