File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ public async Task When_Opening_XamlRootIsSet()
744
744
}
745
745
746
746
[ TestMethod ]
747
- public async Task When_UIElement_ContextFlyout_XamlRoot ( )
747
+ public async Task When_Button_ContextFlyout_XamlRoot ( )
748
748
{
749
749
var flyout = new Flyout ( ) ;
750
750
var host = new Button ( ) { Content = "Asd" } ;
@@ -757,7 +757,20 @@ public async Task When_UIElement_ContextFlyout_XamlRoot()
757
757
}
758
758
759
759
[ TestMethod ]
760
- public async Task When_UIElement_Flyout_XamlRoot ( )
760
+ public async Task When_SplitButton_Flyout_XamlRoot ( )
761
+ {
762
+ var flyout = new Flyout ( ) ;
763
+ var host = new Microsoft . UI . Xaml . Controls . SplitButton ( ) { Content = "Asd" } ;
764
+ host . Flyout = flyout ;
765
+ TestServices . WindowHelper . WindowContent = host ;
766
+ await TestServices . WindowHelper . WaitForIdle ( ) ;
767
+ await TestServices . WindowHelper . WaitForLoaded ( host ) ;
768
+
769
+ Assert . AreEqual ( host . XamlRoot , flyout . XamlRoot ) ;
770
+ }
771
+
772
+ [ TestMethod ]
773
+ public async Task When_Button_Flyout_XamlRoot ( )
761
774
{
762
775
var flyout = new Flyout ( ) ;
763
776
var host = new Button ( ) { Content = "Asd" } ;
You can’t perform that action at this time.
0 commit comments