Skip to content

Commit 411a4ab

Browse files
committed
chore: Adjust for WinUI
1 parent 5b94f04 commit 411a4ab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
using Microsoft.UI.Xaml.Controls.Primitives;
88
using SamplesApp.UITests;
99
using Uno.UI.RuntimeTests.Helpers;
10-
using Uno.UI.Xaml.Controls;
11-
1210

1311
#if HAS_UNO
1412
using Uno.UI.WinRT.Extensions.UI.Popups;
13+
using Uno.UI.Xaml.Controls;
1514
#endif
1615

1716
namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls;
@@ -74,9 +73,12 @@ public async Task When_Visibility_Changes()
7473
type == typeof(MenuBarItem) || // matches winui
7574
type == typeof(ColorPickerSlider) ||
7675

76+
#if HAS_UNO
7777
// WindowChrome requires a Window as constructor parameter,
7878
// but on Android a native parameterless ctor is generated.
79-
type == typeof(WindowChrome))
79+
type == typeof(WindowChrome)
80+
#endif
81+
)
8082
{
8183
continue;
8284
}

0 commit comments

Comments
 (0)