mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Tons of stuff
This commit is contained in:
@@ -76,7 +76,7 @@ public class AdornmentSubViewTests (ITestOutputHelper output)
|
||||
view.EndInit ();
|
||||
var raised = false;
|
||||
|
||||
subView.LayoutStarted += LayoutStarted;
|
||||
subView.SubviewLayout += LayoutStarted;
|
||||
view.Margin.Thickness = new Thickness (1, 2, 3, 4);
|
||||
view.Layout ();
|
||||
Assert.True (raised);
|
||||
|
||||
@@ -352,7 +352,7 @@ public class AdornmentTests (ITestOutputHelper output)
|
||||
parent.BeginInit ();
|
||||
parent.EndInit ();
|
||||
|
||||
parent.LayoutStarted += LayoutStarted;
|
||||
parent.SubviewLayout += LayoutStarted;
|
||||
parent.Margin.Thickness = new Thickness (1, 2, 3, 4);
|
||||
Assert.True (parent.NeedsLayout);
|
||||
Assert.True (parent.Margin.NeedsLayout);
|
||||
@@ -375,7 +375,7 @@ public class AdornmentTests (ITestOutputHelper output)
|
||||
parent.BeginInit ();
|
||||
parent.EndInit ();
|
||||
|
||||
parent.Margin.LayoutStarted += LayoutStarted;
|
||||
parent.Margin.SubviewLayout += LayoutStarted;
|
||||
parent.Margin.Thickness = new Thickness (1, 2, 3, 4);
|
||||
Assert.True (parent.NeedsLayout);
|
||||
Assert.True (parent.Margin.NeedsLayout);
|
||||
|
||||
@@ -9,7 +9,7 @@ public class MarginTests (ITestOutputHelper output)
|
||||
public void Margin_Uses_SuperView_ColorScheme ()
|
||||
{
|
||||
((FakeDriver)Application.Driver!).SetBufferSize (5, 5);
|
||||
View.Diagnostics = ViewDiagnosticFlags.Padding;
|
||||
View.Diagnostics = ViewDiagnosticFlags.Thickness;
|
||||
|
||||
var view = new View { Height = 3, Width = 3 };
|
||||
view.Margin.Thickness = new (1);
|
||||
|
||||
@@ -11,7 +11,7 @@ public class PaddingTests (ITestOutputHelper output)
|
||||
((FakeDriver)Application.Driver!).SetBufferSize (5, 5);
|
||||
var view = new View { Height = 3, Width = 3 };
|
||||
view.Padding.Thickness = new (1);
|
||||
view.Padding.Diagnostics = ViewDiagnosticFlags.Padding;
|
||||
view.Padding.Diagnostics = ViewDiagnosticFlags.Thickness;
|
||||
|
||||
view.ColorScheme = new()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user