Fix all tests.

This commit is contained in:
BDisp
2024-03-25 17:36:35 +00:00
parent ed697a21cd
commit 41971a6e5a
40 changed files with 1529 additions and 1161 deletions

View File

@@ -137,8 +137,9 @@ public class TabViewTests
tv.TabClicked += (s, e) => { clicked = e.Tab; };
Application.Top.Add (tv);
Application.Begin (Application.Top);
var top = new Toplevel ();
top.Add (tv);
Application.Begin (top);
MouseEventEventArgs args;
@@ -239,8 +240,9 @@ public class TabViewTests
newChanged = e.NewTab;
};
Application.Top.Add (tv);
Application.Begin (Application.Top);
var top = new Toplevel ();
top.Add (tv);
Application.Begin (top);
// Click the right arrow
var args = new MouseEventEventArgs (
@@ -332,8 +334,9 @@ public class TabViewTests
newChanged = e.NewTab;
};
Application.Top.Add (tv);
Application.Begin (Application.Top);
var top = new Toplevel ();
top.Add (tv);
Application.Begin (top);
// Click the right arrow
var args = new MouseEventEventArgs (
@@ -402,7 +405,7 @@ public class TabViewTests
Text = "Ok"
};
Toplevel top = Application.Top;
Toplevel top = new ();
top.Add (tv, btn);
Application.Begin (top);