mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
Fixed all views tester unit test
This commit is contained in:
@@ -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}" };
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}" };
|
||||
|
||||
Reference in New Issue
Block a user