|
|
@@ -42,6 +42,8 @@ namespace Avalonia.LeakTests
|
|
|
Content = new Canvas()
|
|
|
};
|
|
|
|
|
|
+ window.Show();
|
|
|
+
|
|
|
// Do a layout and make sure that Canvas gets added to visual tree.
|
|
|
LayoutManager.Instance.ExecuteInitialLayoutPass(window);
|
|
|
Assert.IsType<Canvas>(window.Presenter.Child);
|
|
|
@@ -77,6 +79,8 @@ namespace Avalonia.LeakTests
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ window.Show();
|
|
|
+
|
|
|
// Do a layout and make sure that Canvas gets added to visual tree.
|
|
|
LayoutManager.Instance.ExecuteInitialLayoutPass(window);
|
|
|
Assert.IsType<Canvas>(window.Find<Canvas>("foo"));
|
|
|
@@ -113,6 +117,8 @@ namespace Avalonia.LeakTests
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ window.Show();
|
|
|
+
|
|
|
// Do a layout and make sure that ScrollViewer gets added to visual tree and its
|
|
|
// template applied.
|
|
|
LayoutManager.Instance.ExecuteInitialLayoutPass(window);
|
|
|
@@ -149,6 +155,8 @@ namespace Avalonia.LeakTests
|
|
|
Content = new TextBox()
|
|
|
};
|
|
|
|
|
|
+ window.Show();
|
|
|
+
|
|
|
// Do a layout and make sure that TextBox gets added to visual tree and its
|
|
|
// template applied.
|
|
|
LayoutManager.Instance.ExecuteInitialLayoutPass(window);
|
|
|
@@ -192,6 +200,8 @@ namespace Avalonia.LeakTests
|
|
|
var textBox = (TextBox)window.Content;
|
|
|
textBox.Bind(TextBox.TextProperty, binding);
|
|
|
|
|
|
+ window.Show();
|
|
|
+
|
|
|
// Do a layout and make sure that TextBox gets added to visual tree and its
|
|
|
// Text property set.
|
|
|
LayoutManager.Instance.ExecuteInitialLayoutPass(window);
|
|
|
@@ -229,6 +239,8 @@ namespace Avalonia.LeakTests
|
|
|
Content = textBox = new TextBox()
|
|
|
};
|
|
|
|
|
|
+ window.Show();
|
|
|
+
|
|
|
// Do a layout and make sure that TextBox gets added to visual tree and its
|
|
|
// template applied.
|
|
|
LayoutManager.Instance.ExecuteInitialLayoutPass(window);
|
|
|
@@ -282,6 +294,8 @@ namespace Avalonia.LeakTests
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+ window.Show();
|
|
|
+
|
|
|
// Do a layout and make sure that TreeViewItems get realized.
|
|
|
LayoutManager.Instance.ExecuteInitialLayoutPass(window);
|
|
|
Assert.Equal(1, target.ItemContainerGenerator.Containers.Count());
|