mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Switched back to Application.Begin not calling Refresh
This commit is contained in:
@@ -195,6 +195,7 @@ public class ScrollViewTests (ITestOutputHelper output)
|
||||
var top = new Toplevel ();
|
||||
top.Add (topLabel, sv, bottomLabel);
|
||||
Application.Begin (top);
|
||||
Application.Refresh ();
|
||||
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (
|
||||
@"
|
||||
@@ -460,6 +461,7 @@ public class ScrollViewTests (ITestOutputHelper output)
|
||||
var top = new Toplevel ();
|
||||
top.Add (sv);
|
||||
Application.Begin (top);
|
||||
Application.Refresh ();
|
||||
|
||||
Assert.Equal (new (-25, -25), sv.ContentOffset);
|
||||
Assert.Equal (new (50, 50), sv.GetContentSize ());
|
||||
@@ -495,6 +497,7 @@ public class ScrollViewTests (ITestOutputHelper output)
|
||||
var top = new Toplevel ();
|
||||
top.Add (sv);
|
||||
Application.Begin (top);
|
||||
Application.Refresh ();
|
||||
|
||||
Assert.Equal (50, sv.GetContentSize ().Width);
|
||||
Assert.Equal (50, sv.GetContentSize ().Height);
|
||||
@@ -564,6 +567,7 @@ public class ScrollViewTests (ITestOutputHelper output)
|
||||
var top = new Toplevel ();
|
||||
top.Add (win);
|
||||
Application.Begin (top);
|
||||
Application.Refresh ();
|
||||
|
||||
var expected = @"
|
||||
┌──────────────────┐
|
||||
@@ -894,6 +898,7 @@ public class ScrollViewTests (ITestOutputHelper output)
|
||||
var top = new Toplevel ();
|
||||
top.Add (sv);
|
||||
Application.Begin (top);
|
||||
Application.Refresh ();
|
||||
|
||||
TestHelpers.AssertDriverContentsWithFrameAre (
|
||||
@"
|
||||
@@ -1080,6 +1085,7 @@ public class ScrollViewTests (ITestOutputHelper output)
|
||||
var top = new Toplevel ();
|
||||
top.Add (sv);
|
||||
Application.Begin (top);
|
||||
Application.Refresh ();
|
||||
|
||||
Assert.Equal (4, sv.Subviews.Count);
|
||||
Assert.Equal (2, sv.Subviews [0].Subviews.Count);
|
||||
|
||||
Reference in New Issue
Block a user