소스 검색

Fixed all views tester unit test

Tig 1 년 전
부모
커밋
71e1d992ba
3개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 2
      UICatalog/Scenarios/AllViewsTester.cs
  2. 1 1
      UICatalog/Scenarios/ComputedLayout.cs
  3. 4 4
      UnitTests/UICatalog/ScenarioTests.cs

+ 2 - 2
UICatalog/Scenarios/AllViewsTester.cs

@@ -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}" };

+ 1 - 1
UICatalog/Scenarios/ComputedLayout.cs

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

+ 4 - 4
UnitTests/UICatalog/ScenarioTests.cs

@@ -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}" };