Tons of stuff

This commit is contained in:
Tig
2024-10-23 15:15:53 -06:00
parent 008d49788e
commit b31339da02
91 changed files with 1654 additions and 1025 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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()
{