mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
ConsoleDriver now uses Region for Clip.
Still only rectangular regions. All tests pass.
This commit is contained in:
@@ -132,7 +132,7 @@ public class ContextMenuTests (ITestOutputHelper output)
|
||||
{
|
||||
((FakeDriver)Application.Driver!).SetBufferSize (20, 15);
|
||||
|
||||
Assert.Equal (new Rectangle (0, 0, 20, 15), Application.Driver?.Clip);
|
||||
Assert.Equal (new Rectangle (0, 0, 20, 15), Application.Driver?.Clip.GetBounds ());
|
||||
TestHelpers.AssertDriverContentsWithFrameAre ("", output);
|
||||
|
||||
var top = new Toplevel { X = 2, Y = 2, Width = 15, Height = 4 };
|
||||
@@ -268,7 +268,7 @@ public class ContextMenuTests (ITestOutputHelper output)
|
||||
{
|
||||
((FakeDriver)Application.Driver!).SetBufferSize (20, 15);
|
||||
|
||||
Assert.Equal (new Rectangle (0, 0, 20, 15), Application.Driver?.Clip);
|
||||
Assert.Equal (new Rectangle (0, 0, 20, 15), Application.Driver?.Clip.GetBounds ());
|
||||
TestHelpers.AssertDriverContentsWithFrameAre ("", output);
|
||||
|
||||
// Don't use Dialog here as it has more layout logic. Use Window instead.
|
||||
|
||||
Reference in New Issue
Block a user