Fixes #3064. Pos.View returns PosCombine (#3065)

This commit is contained in:
BDisp
2023-12-19 23:34:17 +00:00
committed by GitHub
parent 06ad562bc6
commit 74afd18148
8 changed files with 104 additions and 70 deletions

View File

@@ -22,7 +22,7 @@ namespace Terminal.Gui.ViewTests {
var r = new View ();
Assert.NotNull (r);
Assert.Equal (LayoutStyle.Computed, r.LayoutStyle);
Assert.Equal ("View()((0,0,0,0))", r.ToString ());
Assert.Equal ("View()(0,0,0,0)", r.ToString ());
Assert.False (r.CanFocus);
Assert.False (r.HasFocus);
Assert.Equal (new Rect (0, 0, 0, 0), r.Bounds);
@@ -47,7 +47,7 @@ namespace Terminal.Gui.ViewTests {
r = new View (Rect.Empty);
Assert.NotNull (r);
Assert.Equal (LayoutStyle.Absolute, r.LayoutStyle);
Assert.Equal ("View()((0,0,0,0))", r.ToString ());
Assert.Equal ("View()(0,0,0,0)", r.ToString ());
Assert.False (r.CanFocus);
Assert.False (r.HasFocus);
Assert.Equal (new Rect (0, 0, 0, 0), r.Bounds);
@@ -72,7 +72,7 @@ namespace Terminal.Gui.ViewTests {
r = new View (new Rect (1, 2, 3, 4));
Assert.NotNull (r);
Assert.Equal (LayoutStyle.Absolute, r.LayoutStyle);
Assert.Equal ("View()((1,2,3,4))", r.ToString ());
Assert.Equal ("View()(1,2,3,4)", r.ToString ());
Assert.False (r.CanFocus);
Assert.False (r.HasFocus);
Assert.Equal (new Rect (0, 0, 3, 4), r.Bounds);
@@ -97,7 +97,7 @@ namespace Terminal.Gui.ViewTests {
r = new View ("Vertical View", TextDirection.TopBottom_LeftRight);
Assert.NotNull (r);
Assert.Equal (LayoutStyle.Computed, r.LayoutStyle);
Assert.Equal ("View(Vertical View)((0,0,1,13))", r.ToString ());
Assert.Equal ("View(Vertical View)(0,0,1,13)", r.ToString ());
Assert.False (r.CanFocus);
Assert.False (r.HasFocus);
Assert.Equal (new Rect (0, 0, 1, 13), r.Bounds);
@@ -117,7 +117,6 @@ namespace Terminal.Gui.ViewTests {
Assert.Null (r.MostFocused);
Assert.Equal (TextDirection.TopBottom_LeftRight, r.TextDirection);
r.Dispose ();
}
[Fact, TestRespondersDisposed]