Fixed all views tester unit test

This commit is contained in:
Tig
2024-05-14 20:50:50 -07:00
parent 65cbb060a1
commit 71e1d992ba
3 changed files with 7 additions and 7 deletions

View File

@@ -139,7 +139,7 @@ public class AllViewsTester : Scenario
Title = "Settings"
};
string [] radioItems = { "_Percent(x)", "_AnchorEnd", "_Center", "A_t(x)" };
string [] radioItems = { "_Percent(x)", "_AnchorEnd", "_Center", "A_bsolute(x)" };
_locationFrame = new FrameView
{
@@ -171,7 +171,7 @@ public class AllViewsTester : Scenario
_locationFrame.Add (_xRadioGroup);
radioItems = new [] { "P_ercent(y)", "A_nchorEnd", "C_enter", "At(_y)" };
radioItems = new [] { "P_ercent(y)", "A_nchorEnd", "C_enter", "Absoulte(_y)" };
label = new Label { X = Pos.Right (_xRadioGroup) + 1, Y = 0, Text = "Y:" };
_locationFrame.Add (label);
_yText = new TextField { X = Pos.Right (label) + 1, Y = 0, Width = 4, Text = $"{_yVal}" };

View File

@@ -64,7 +64,7 @@ public class ComputedLayout : Scenario
app.Add (verticalRuler);
// Demonstrate At - Using Pos.At to locate a view in an absolute location
var atButton = new Button { Text = "At(2,1)", X = Pos.Absolute (2), Y = Pos.Absolute (1) };
var atButton = new Button { Text = "Absolute(2,1)", X = Pos.Absolute (2), Y = Pos.Absolute (1) };
app.Add (atButton);
// Throw in a literal absolute - Should function identically to above

View File

@@ -122,8 +122,8 @@ public class ScenarioTests : TestsAllViews
RadioGroup _hRadioGroup;
TextField _hText;
var _hVal = 0;
List<string> posNames = new () { "Factor", "AnchorEnd", "Center", "Absolute" };
List<string> dimNames = new () { "Auto", "Factor", "Fill", "Absolute" };
List<string> posNames = new () { "Percent", "AnchorEnd", "Center", "Absolute" };
List<string> dimNames = new () { "Auto", "Percent", "Fill", "Absolute" };
Application.Init (new FakeDriver ());
@@ -167,7 +167,7 @@ public class ScenarioTests : TestsAllViews
_computedCheckBox = new () { X = 0, Y = 0, Text = "Computed Layout", Checked = true };
_settingsPane.Add (_computedCheckBox);
var radioItems = new [] { "Percent(x)", "AnchorEnd(x)", "Center", "At(x)" };
var radioItems = new [] { "Percent(x)", "AnchorEnd(x)", "Center", "Absolute(x)" };
_locationFrame = new ()
{
@@ -187,7 +187,7 @@ public class ScenarioTests : TestsAllViews
_locationFrame.Add (_xRadioGroup);
radioItems = new [] { "Percent(y)", "AnchorEnd(y)", "Center", "At(y)" };
radioItems = new [] { "Percent(y)", "AnchorEnd(y)", "Center", "Absolute(y)" };
label = new () { X = Pos.Right (_xRadioGroup) + 1, Y = 0, Text = "y:" };
_locationFrame.Add (label);
_yText = new () { X = Pos.Right (label) + 1, Y = 0, Width = 4, Text = $"{_yVal}" };