[Xamarin.Forms] Enhancement TC 79/180179/1
authorSeunghyun Choi <sh4682.choi@samsung.com>
Fri, 25 May 2018 08:45:33 +0000 (17:45 +0900)
committerSeunghyun Choi <sh4682.choi@samsung.com>
Fri, 25 May 2018 08:45:33 +0000 (17:45 +0900)
Change-Id: I359408740e19d2f34d4d8ae4597cbedd8d706a94

tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSAbsoluteLayout.cs
tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSFrame.cs
tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSSlider.cs
tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSWebView.cs [changed mode: 0755->0644]

index 2d867eb..fff5b84 100644 (file)
@@ -65,7 +65,7 @@ namespace Xamarin.Forms.Core.UnitTests
         [Step(1, "Click run TC")]
         [Step(2, "Click Default button  or AutoSize button")]
         [Step(3, "Observe change of square")]
-        [Step(4, "Testcase PASS if click Default button -> large square, Autosize button -> small square otherwise FAIL")]
+        [Step(4, "Testcase PASS if square size changed otherwise FAIL")]
         [Postcondition(1, "Click Back button.")]
         public async Task AutoSize_PROPERTY_GET()
         {
index 28ece6d..91cd695 100644 (file)
@@ -799,14 +799,14 @@ namespace Xamarin.Forms.Core.UnitTests
             };
             var _listview = new ListView
             {
-                BackgroundColor = Color.Yellow,
+                BackgroundColor = Color.Black,
                 RowHeight = 100,
                 ItemsSource = controlTest,
                 ItemTemplate = new DataTemplate(() =>
                 {
                     Label nameLabel = new Label()
                     {
-                        TextColor = Color.Yellow,
+                        TextColor = Color.Blue,
                         HorizontalOptions = LayoutOptions.Center,
                         HorizontalTextAlignment = TextAlignment.Center
                     };
index 604262b..05a4311 100644 (file)
@@ -395,7 +395,7 @@ namespace Xamarin.Forms.Core.UnitTests
         [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
         [Precondition(1, "NA")]
         [Step(1, "Click run TC")]
-        [Step(2, "Check if dragging slider change the  Max value of slider after binding with stepper.")]
+        [Step(2, "Check if dragging slider change the  Max value of slider after binding with second slider.")]
         [Postcondition(1, "NA")]
         public static async Task MaximumProperty_UIBH()
         {
@@ -404,18 +404,15 @@ namespace Xamarin.Forms.Core.UnitTests
             _label1.IsVisible = true;
             _label2.IsVisible = false;
             _label1.Text = "Maximum value is 40 before binding.";
-            Stepper stepper2 = new Stepper
+            Slider slider2 = new Slider
             {
-                Value = 5,
+                Value = 10.00,
                 Minimum = 0,
                 Maximum = 10.00,
-                Increment = 1.0,
-                HorizontalOptions = LayoutOptions.Center,
-                VerticalOptions = LayoutOptions.CenterAndExpand,
-                WidthRequest = 50
+                HorizontalOptions = LayoutOptions.FillAndExpand,
             };
 
-            _slider1.BindingContext = stepper2;
+            _slider1.BindingContext = slider2;
             _slider1.SetBinding(Slider.MaximumProperty, "Maximum");
             _slider1.ValueChanged += OnValueChangedShowValueMax;
 
@@ -426,7 +423,13 @@ namespace Xamarin.Forms.Core.UnitTests
                     HorizontalOptions = LayoutOptions.FillAndExpand,
                     Children =
                     {
-                         _label1,_slider1,_label2,stepper2
+                         _label1,_slider1,_label2,
+                         new Label
+                         {
+                             Text = "Second slider maximum Value is 10",
+                             TextColor = Color.Red
+                         },
+                        slider2
                     }
                 },
                 Title = "Test: Source",
@@ -445,7 +448,7 @@ namespace Xamarin.Forms.Core.UnitTests
         [Property("AUTHOR", "Razin Farhan Hussain, razin.fh@samsung.com")]
         [Precondition(1, "NA")]
         [Step(1, "Click run TC")]
-        [Step(2, "Check if dragging slider change the  Min value of slider after binding with stepper.")]
+        [Step(2, "Check if dragging slider change the  Min value of slider after binding with second slider.")]
         [Postcondition(1, "NA")]
         public static async Task MinimumProperty_UIBH()
         {
@@ -454,18 +457,16 @@ namespace Xamarin.Forms.Core.UnitTests
             _label1.IsVisible = true;
             _label2.IsVisible = false;
             _label1.Text = "Minimum value is 0 before binding.";
-            Stepper stepper2 = new Stepper
+            Slider slider3 = new Slider
             {
                 Value = 5,
-                Minimum = 3,
+                Minimum = 0,
                 Maximum = 10.00,
-                Increment = 1.0,
-                HorizontalOptions = LayoutOptions.Center,
-                VerticalOptions = LayoutOptions.CenterAndExpand,
-                WidthRequest = 50
+                HorizontalOptions = LayoutOptions.FillAndExpand,
             };
+            slider3.Minimum = 3;
 
-            _slider1.BindingContext = stepper2;
+            _slider1.BindingContext = slider3;
             _slider1.SetBinding(Slider.MinimumProperty, "Minimum");
             _slider1.ValueChanged += OnValueChangedShowValueMin;
 
@@ -476,7 +477,13 @@ namespace Xamarin.Forms.Core.UnitTests
                     HorizontalOptions = LayoutOptions.FillAndExpand,
                     Children =
                     {
-                         _label1,_slider1,_label2,stepper2
+                         _label1,_slider1,_label2,
+                        new Label
+                         {
+                             Text = "Second slider minimum Value is 3",
+                             TextColor = Color.Red
+                         },
+                        slider3
                     }
                 },
                 Title = "Test: Source",
old mode 100755 (executable)
new mode 100644 (file)
index e7f1581..32ed08a
@@ -89,7 +89,7 @@ namespace Xamarin.Forms.Core.UnitTests
             {
                 Source = new UrlWebViewSource
                 {
-                    Url = "http://blog.xamarin.com/",
+                    Url = "https://www.tizen.org/about/about-linux-foundation",
                 },
                 VerticalOptions = LayoutOptions.FillAndExpand
             };