Commit d30f407
Convert tests to UIThreadTestMethod pattern (#764)
* Convert ShouldConfigureGridSplitterAutomationPeer test to UIThreadTestMethod
- Changed [TestMethod] to [UIThreadTestMethod]
- Removed EnqueueAsync wrapper
- Added CompositionTargetHelper.ExecuteAfterCompositionRenderingAsync() after gridSplitter.Name assignment
- Added CompositionTargetHelper.ExecuteAfterCompositionRenderingAsync() after gridSplitter.SetValue call
- Added using CommunityToolkit.WinUI.Helpers for CompositionTargetHelper
Co-authored-by: michael-hawker <24302614+michael-hawker@users.noreply.github.com>
* Remove using
* Convert ComplexAsyncLoadUIExampleTest to UIThreadTestMethod
- Changed [TestMethod] to [UIThreadTestMethod]
- Removed EnqueueAsync wrapper
- Added CompositionTargetHelper.ExecuteAfterCompositionRenderingAsync() after LoadTestContentAsync
- Added CompositionTargetHelper.ExecuteAfterCompositionRenderingAsync() after UnloadTestContentAsync
- Added using CommunityToolkit.WinUI.Helpers for CompositionTargetHelper
Co-authored-by: michael-hawker <24302614+michael-hawker@users.noreply.github.com>
* Remove unnecessary using statement from ColorPicker test
The using CommunityToolkit.WinUI.Helpers is not needed as CompositionTargetHelper is already available through the test base class.
Co-authored-by: michael-hawker <24302614+michael-hawker@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: michael-hawker <24302614+michael-hawker@users.noreply.github.com>1 parent ff39924 commit d30f407
File tree
2 files changed
+22
-24
lines changed- components
- ColorPicker/tests
- Sizers/tests
2 files changed
+22
-24
lines changedLines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
108 | 106 | | |
109 | | - | |
| 107 | + | |
| 108 | + | |
110 | 109 | | |
111 | | - | |
| 110 | + | |
112 | 111 | | |
113 | | - | |
| 112 | + | |
| 113 | + | |
114 | 114 | | |
115 | | - | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
22 | 20 | | |
23 | | - | |
24 | | - | |
| 21 | + | |
| 22 | + | |
25 | 23 | | |
26 | | - | |
| 24 | + | |
27 | 25 | | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
30 | 29 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments