提交 43119c36 编写于 作者: M Martin Zikmund

test: Adjust test for XamlRoot

上级 b3aaad3d
......@@ -220,8 +220,8 @@ namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml
{
// Ttrick - GetVisualTreeParent's return type is different
// on each platform, so we use var to get the correct type implicitly
var current = Windows.UI.Xaml.Window.Current.Content?.GetVisualTreeParent();
current = Windows.UI.Xaml.Window.Current.Content;
var current = TestServices.WindowHelper.XamlRoot.Content?.GetVisualTreeParent();
current = TestServices.WindowHelper.XamlRoot.Content;
var parent = current?.GetVisualTreeParent();
while (parent != null)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册