Repository navigation
[Candidate/11 sr2] Fixed the device test failure on the Windows platform - #40365
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PR Test Gate
🧪 Gate analysis — click to expand⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect. No interpretable test-group summary was produced. No additional test execution is inferred. Setup did not capture a verified PR head; no commit is claimed as tested. No immutable without-fix baseline was prepared. |
| // Transformed content (wrapped in WrapperView when it has a shadow) must be hosted in the clip host. | ||
| Assert.Same(clipHost, contentPanel.Content.Parent); | ||
| var clip = Assert.IsType<CompositionGeometricClip>(ElementCompositionPreview.GetElementVisual(clipHost).Clip); | ||
| Assert.NotNull(Assert.IsType<CompositionPathGeometry>(clip.Geometry).Path); |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - Keep a check that content remains visible inside the aperture. ContentPanel.UpdateClip creates a nonnull CompositionPath even from an empty PathF, so a regression that clips away all content still satisfies every replacement assertion; the removed red-center assertion caught that case. The remaining nested-layout pixel test does not cover this theory's direct-content rotation, translation, or shadow cases. Add deterministic aperture/content checks or a capturable interior sentinel alongside these structural assertions so avoiding unreliable Win2D bitmap capture does not also accept an empty result.
01cf41a to
845e146
Compare
|
The original pixel assertions now pass at the candidate head, so this rewrite may no longer be needed. #40353 (merged 11-18 10:48Z; at candidate head as Device build 1687629 on #40116 merge
The last failure of that case (device 1687552, Windows packaged + unpackaged, This PR also reports |
This comment has been minimized.
This comment has been minimized.
Tests Failure Analysis
🧪 CI Analysis — click to expand📊 maui-pr
🧪 maui-pr-devicetestsNo failures found in final verified Helix results; earlier Windows attempts recovered, which does not establish unrelatedness. 🧪 maui-pr-uitestsAll cases below are Mac element-wait timeouts. Five target samples have incomplete coverage and no equivalent failure evidence; the truncated patch also prevents excluding menu/shared-code changes.
🧭 Follow-up — actions and refreshNext action: Compare the leak and menu cases on
|
This comment has been minimized.
This comment has been minimized.
PR Test Gate
🧪 Gate analysis — click to expand⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect. No interpretable test-group summary was produced. No additional test execution is inferred. Setup did not capture a verified PR head; no commit is claimed as tested. No immutable without-fix baseline was prepared. |
b1b49aa to
00fa972
Compare
86f3abf to
f03e2a0
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
00fa972 to
f69266d
Compare
…orm (#40365) Issue Details: In #40175, the BoxView shadow rendering was updated on Windows to use the live composition visual for Win2D-based shapes instead of relying on RenderTargetBitmap. This affected the existing clipping test introduced in #37424, which used pixel assertions to verify that transformed BoxView content remained clipped to the Border's shape. Since RenderTargetBitmap does not reliably capture Win2D content, the test became unreliable. Description of Changes: Updated the clipping test introduced in #37424 to avoid screenshot-based pixel assertions affected by #40175. The test now verifies that the Border creates a ContentPanelClipHost, that its content (including the WrapperView when a shadow is applied) is hosted inside the clip host, and that the host's composition visual contains a valid CompositionGeometricClip with a CompositionPathGeometry. This ensures that transformed content remains clipped to the Border's shape, with and without shadows. Fixes: #40116 Co-authored-by: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
…orm (#40365) Issue Details: In #40175, the BoxView shadow rendering was updated on Windows to use the live composition visual for Win2D-based shapes instead of relying on RenderTargetBitmap. This affected the existing clipping test introduced in #37424, which used pixel assertions to verify that transformed BoxView content remained clipped to the Border's shape. Since RenderTargetBitmap does not reliably capture Win2D content, the test became unreliable. Description of Changes: Updated the clipping test introduced in #37424 to avoid screenshot-based pixel assertions affected by #40175. The test now verifies that the Border creates a ContentPanelClipHost, that its content (including the WrapperView when a shadow is applied) is hosted inside the clip host, and that the host's composition visual contains a valid CompositionGeometricClip with a CompositionPathGeometry. This ensures that transformed content remains clipped to the Border's shape, with and without shadows. Fixes: #40116 Co-authored-by: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
…orm (#40365) Issue Details: In #40175, the BoxView shadow rendering was updated on Windows to use the live composition visual for Win2D-based shapes instead of relying on RenderTargetBitmap. This affected the existing clipping test introduced in #37424, which used pixel assertions to verify that transformed BoxView content remained clipped to the Border's shape. Since RenderTargetBitmap does not reliably capture Win2D content, the test became unreliable. Description of Changes: Updated the clipping test introduced in #37424 to avoid screenshot-based pixel assertions affected by #40175. The test now verifies that the Border creates a ContentPanelClipHost, that its content (including the WrapperView when a shadow is applied) is hosted inside the clip host, and that the host's composition visual contains a valid CompositionGeometricClip with a CompositionPathGeometry. This ensures that transformed content remains clipped to the Border's shape, with and without shadows. Fixes: #40116 Co-authored-by: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
…orm (#40365) Issue Details: In #40175, the BoxView shadow rendering was updated on Windows to use the live composition visual for Win2D-based shapes instead of relying on RenderTargetBitmap. This affected the existing clipping test introduced in #37424, which used pixel assertions to verify that transformed BoxView content remained clipped to the Border's shape. Since RenderTargetBitmap does not reliably capture Win2D content, the test became unreliable. Description of Changes: Updated the clipping test introduced in #37424 to avoid screenshot-based pixel assertions affected by #40175. The test now verifies that the Border creates a ContentPanelClipHost, that its content (including the WrapperView when a shadow is applied) is hosted inside the clip host, and that the host's composition visual contains a valid CompositionGeometricClip with a CompositionPathGeometry. This ensures that transformed content remains clipped to the Border's shape, with and without shadows. Fixes: #40116 Co-authored-by: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
…orm (dotnet#40365) Issue Details: In dotnet#40175, the BoxView shadow rendering was updated on Windows to use the live composition visual for Win2D-based shapes instead of relying on RenderTargetBitmap. This affected the existing clipping test introduced in dotnet#37424, which used pixel assertions to verify that transformed BoxView content remained clipped to the Border's shape. Since RenderTargetBitmap does not reliably capture Win2D content, the test became unreliable. Description of Changes: Updated the clipping test introduced in dotnet#37424 to avoid screenshot-based pixel assertions affected by dotnet#40175. The test now verifies that the Border creates a ContentPanelClipHost, that its content (including the WrapperView when a shadow is applied) is hosted inside the clip host, and that the host's composition visual contains a valid CompositionGeometricClip with a CompositionPathGeometry. This ensures that transformed content remains clipped to the Border's shape, with and without shadows. Fixes: dotnet#40116 Co-authored-by: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Issue Details:
In #40175, the BoxView shadow rendering was updated on Windows to use the live composition visual for Win2D-based shapes instead of relying on RenderTargetBitmap. This affected the existing clipping test introduced in #37424, which used pixel assertions to verify that transformed BoxView content remained clipped to the Border's shape. Since RenderTargetBitmap does not reliably capture Win2D content, the test became unreliable.
Description of Changes:
Updated the clipping test introduced in #37424 to avoid screenshot-based pixel assertions affected by #40175. The test now verifies that the Border creates a ContentPanelClipHost, that its content (including the WrapperView when a shadow is applied) is hosted inside the clip host, and that the host's composition visual contains a valid CompositionGeometricClip with a CompositionPathGeometry. This ensures that transformed content remains clipped to the Border's shape, with and without shadows.
Fixes: #40116