Skip to content

Commit e6c8e6a

Browse files
committed
test: Disable failing WinUI tests
1 parent 186e88c commit e6c8e6a

File tree

17 files changed

+26
-0
lines changed

17 files changed

+26
-0
lines changed

src/Uno.UI.RuntimeTests/IntegrationTests/dxaml/controls/grid/GridIntegrationTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ await TestServices.RunOnUIThread(() =>
11181118
}
11191119

11201120
[TestMethod]
1121+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
11211122
public async Task BorderChromeForComplexGrid()
11221123
{
11231124
TestCleanupWrapper cleanup;

src/Uno.UI.RuntimeTests/IntegrationTests/dxaml/controls/stackpanel/StackPanelIntegrationTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ await RunOnUIThread(() =>
185185
}
186186

187187
[TestMethod]
188+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
188189
public async Task VerifyDesiredSize_AutoLayout()
189190
{
190191
var stackPanel = await VerifyDesiredSize_Setup();
@@ -208,6 +209,7 @@ await RunOnUIThread(() =>
208209
}
209210

210211
[TestMethod]
212+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
211213
public async Task VerifyDesiredSize_MinWidthHeight()
212214
{
213215
var stackPanel = await VerifyDesiredSize_Setup();
@@ -242,6 +244,7 @@ await RunOnUIThread(() =>
242244
}
243245

244246
[TestMethod]
247+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
245248
public async Task VerifyDesiredSize_MaxWidthHeight()
246249
{
247250
var stackPanel = await VerifyDesiredSize_Setup();
@@ -431,6 +434,7 @@ private Rectangle CreateRectangle(int width, int height, bool visible = true)
431434
}
432435

433436
[TestMethod]
437+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
434438
public async Task VerifySnapPoints()
435439
{
436440
LOG_OUTPUT("Validating horizontal SnapPoints.");

src/Uno.UI.RuntimeTests/MUX/Windows_UI_Xaml_Controls/PersonPictureTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ await RunOnUIThread.ExecuteAsync(() =>
179179
}
180180

181181
[TestMethod]
182+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
182183
public async Task VerifyVSMStatesForPhotosAndInitials()
183184
{
184185
PersonPicture personPicture = null;

src/Uno.UI.RuntimeTests/Tests/TemplatedParent/TemplatedParentTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ public async Task VisualStateGroup_TP_Inheritance()
298298
public Task LateTemplateSwapping_NonContentControl() => LateTemplateSwapping<TextBox>();
299299

300300
[TestMethod]
301+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
301302
public Task LateTemplateSwapping_ContentControl() => LateTemplateSwapping<ContentControl>();
302303

303304
public async Task LateTemplateSwapping<TControl>() where TControl : Control, new()

src/Uno.UI.RuntimeTests/Tests/UnitTestsTests/Given_UnitTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class Given_UnitTest
1212

1313
// This tests that automatic retry is working.
1414
[TestMethod]
15+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
1516
public void When_UnhandledException()
1617
{
1718
if (When_UnhandledException_Count++ < 2)
@@ -37,6 +38,7 @@ public void Initialize()
3738
}
3839

3940
[TestMethod]
41+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
4042
public void When_Success()
4143
{
4244
}

src/Uno.UI.RuntimeTests/Tests/Windows_Storage/Streams/Given_WindowsRuntimeStreamExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public async Task When_StreamAsRandomAccessStream()
5656
}
5757

5858
[TestMethod]
59+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
5960
public void When_MemoryStreamAsRandomAccessStream_CloneStream()
6061
{
6162
var memoryStream = new MemoryStream(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 });

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_FrameworkElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ protected override Size MeasureOverride(Size availableSize)
711711

712712
[TestMethod]
713713
[RunsOnUIThread]
714+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
714715
#if __ANDROID__ || __APPLE_UIKIT__
715716
[Ignore("Layouter doesn't work properly")]
716717
#endif

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_FrameworkElement_EffectiveViewport.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public partial class Given_FrameworkElement_EffectiveViewport // test cases
7474
{
7575
[TestMethod]
7676
[RequiresFullWindow]
77+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
7778
public async Task EffectiveViewport_When_BottomRightAligned()
7879
{
7980
var sut = new Border { Width = 42, Height = 42, HorizontalAlignment = HorizontalAlignment.Right, VerticalAlignment = VerticalAlignment.Bottom };
@@ -453,6 +454,7 @@ await RetryAssert(() =>
453454
[RunsOnUIThread]
454455
[RequiresFullWindow]
455456
[CombinatorialData]
457+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
456458
#if __ANDROID__ || __APPLE_UIKIT__
457459
[Ignore(
458460
"On Android and iOS the ScrollHost is not the (native)SCP but the SV, so alignments are not taken in consideration when computing the scrollport "

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_UIElement.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,7 @@ public async Task When_Explicit_Size_Clip_Changes()
13211321
[TestMethod]
13221322
[RunsOnUIThread]
13231323
[RequiresFullWindow]
1324+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
13241325
#if !HAS_COMPOSITION_API
13251326
[Ignore("Composition APIs are not supported on this platform.")]
13261327
#endif
@@ -1430,6 +1431,7 @@ public async Task When_Visual_Offset_Changes_InjectedPointer()
14301431
[TestMethod]
14311432
[RunsOnUIThread]
14321433
[RequiresFullWindow]
1434+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
14331435
public async Task When_Element_Has_Translation_HitTest()
14341436
{
14351437
var sut = new Button()
@@ -1518,6 +1520,7 @@ public async Task When_Element_Has_Translation_InjectedPointer()
15181520
[TestMethod]
15191521
[RunsOnUIThread]
15201522
[RequiresFullWindow]
1523+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
15211524
public async Task When_Element_Has_Translation_And_Visual_Has_Offset()
15221525
{
15231526
var sut = new Button()

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ComboBox.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public async Task When_IsEditable_False_Changes_To_True()
139139
private TextBox GetEditableText(ComboBox comboBox) => comboBox.FindFirstChild<TextBox>(c => c.Name == "EditableText");
140140

141141
[TestMethod]
142+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
142143
public async Task When_ComboBox_MinWidth()
143144
{
144145
var source = Enumerable.Range(0, 5).ToArray();
@@ -1119,6 +1120,7 @@ private async Task<RawBitmap> TakeScreenshot(FrameworkElement SUT)
11191120
#endif
11201121

11211122
[TestMethod]
1123+
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
11221124
public async Task When_SelectedItem_TwoWay_Binding_Clear()
11231125
{
11241126
var root = new Grid();

0 commit comments

Comments
 (0)