Describe the bug
Background
This was found while investigating Fix: DockPanel measure fix #618
Problem
If an exception is thrown during a XAML measure pass, the tests stall out and do not report the answer.
This seems to happen whether using the [UIThreadTestMethod] attribute from our TestGen tooling or when using [TestMethod], EnqueueAsync, LoadTestContentAsync and UnloadTestContentAsync piecemeal. The effect is the same.
Solution
This needs investigation and fixing. It's not helpful to simply time out when a control throws during a layout or measure pass, and it can become an active problem if unexpected errors aren't being bubbled up to CI.
Steps to reproduce
This can be reproduced by throwing an exception during the `Measure` or `Arrange` pass while running in a unit test.
This can either be set up manually for a long-term repro, or it can be temporarily reintroduced by reverting https://github.com/CommunityToolkit/Windows/pull/618 and running.
Expected behavior
Tests should catch exceptions thrown during XAML layout and bubble them up instead of timing out.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item.
Describe the bug
Background
This was found while investigating Fix: DockPanel measure fix #618
Problem
If an exception is thrown during a XAML measure pass, the tests stall out and do not report the answer.
This seems to happen whether using the
[UIThreadTestMethod]attribute from our TestGen tooling or when using[TestMethod],EnqueueAsync,LoadTestContentAsyncandUnloadTestContentAsyncpiecemeal. The effect is the same.Solution
This needs investigation and fixing. It's not helpful to simply time out when a control throws during a layout or measure pass, and it can become an active problem if unexpected errors aren't being bubbled up to CI.
Steps to reproduce
Expected behavior
Tests should catch exceptions thrown during XAML layout and bubble them up instead of timing out.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item.