mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Fix RulerTests.
This commit is contained in:
@@ -48,8 +48,9 @@ public class RulerTests
|
||||
|
||||
// Add a frame so we can see the ruler
|
||||
var f = new FrameView { X = 0, Y = 0, Width = Dim.Fill (), Height = Dim.Fill () };
|
||||
Application.Top.Add (f);
|
||||
Application.Begin (Application.Top);
|
||||
var top = new Toplevel ();
|
||||
top.Add (f);
|
||||
Application.Begin (top);
|
||||
((FakeDriver)Application.Driver).SetBufferSize (len + 5, 5);
|
||||
Assert.Equal (new Rectangle (0, 0, len + 5, 5), f.Frame);
|
||||
|
||||
@@ -120,8 +121,9 @@ public class RulerTests
|
||||
|
||||
// Add a frame so we can see the ruler
|
||||
var f = new FrameView { X = 0, Y = 0, Width = Dim.Fill (), Height = Dim.Fill () };
|
||||
Application.Top.Add (f);
|
||||
Application.Begin (Application.Top);
|
||||
var top = new Toplevel ();
|
||||
top.Add (f);
|
||||
Application.Begin (top);
|
||||
((FakeDriver)Application.Driver).SetBufferSize (len + 5, 5);
|
||||
Assert.Equal (new Rectangle (0, 0, len + 5, 5), f.Frame);
|
||||
|
||||
@@ -165,8 +167,9 @@ public class RulerTests
|
||||
// Add a frame so we can see the ruler
|
||||
var f = new FrameView { X = 0, Y = 0, Width = Dim.Fill (), Height = Dim.Fill () };
|
||||
|
||||
Application.Top.Add (f);
|
||||
Application.Begin (Application.Top);
|
||||
var top = new Toplevel ();
|
||||
top.Add (f);
|
||||
Application.Begin (top);
|
||||
((FakeDriver)Application.Driver).SetBufferSize (5, len + 5);
|
||||
Assert.Equal (new Rectangle (0, 0, 5, len + 5), f.Frame);
|
||||
|
||||
@@ -297,8 +300,9 @@ public class RulerTests
|
||||
// Add a frame so we can see the ruler
|
||||
var f = new FrameView { X = 0, Y = 0, Width = Dim.Fill (), Height = Dim.Fill () };
|
||||
|
||||
Application.Top.Add (f);
|
||||
Application.Begin (Application.Top);
|
||||
var top = new Toplevel ();
|
||||
top.Add (f);
|
||||
Application.Begin (top);
|
||||
((FakeDriver)Application.Driver).SetBufferSize (5, len + 5);
|
||||
Assert.Equal (new Rectangle (0, 0, 5, len + 5), f.Frame);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user