[XamarinForms][Non-ACR] Adjust font size for TV 27/180227/1
authorshyun.min <shyun.min@samsung.com>
Fri, 25 May 2018 11:55:55 +0000 (20:55 +0900)
committershyun.min <shyun.min@samsung.com>
Fri, 25 May 2018 11:55:55 +0000 (20:55 +0900)
Change-Id: Ia94d67485112adc05c774e0aaba8db144f52bb02

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

old mode 100755 (executable)
new mode 100644 (file)
index 15adf22..3063b99
@@ -416,20 +416,27 @@ namespace Xamarin.Forms.Core.UnitTests
         public async Task FontSize_Editor_UIBH()
         {
             /*TEST CODE*/
+
+            var size = 10;
+
+            if (Device.Idiom == TargetIdiom.TV)
+            {
+                size = size * 3;
+            }
+
             _editor = new Editor
             {
                 BackgroundColor = Color.Blue.WithLuminosity(0.9),
                 VerticalOptions = LayoutOptions.CenterAndExpand,
-                HorizontalOptions = LayoutOptions.CenterAndExpand,
+                HorizontalOptions = LayoutOptions.FillAndExpand,
                 HeightRequest = 200,
-                WidthRequest = 300,
                 Text = "Xamarin Forms"
             };
 
             String[] dataTest = { "", "", "" };
-            dataTest[0] = "15.2";
-            dataTest[1] = "25.3";
-            dataTest[2] = "45.5";
+            dataTest[0] = size.ToString();
+            dataTest[1] = (size * 2).ToString();
+            dataTest[2] = (size * 3).ToString();
             var text = "Select a FontSize test";
             var title = "FontSize Test";
             List<ControlTest> controlTest = new List<ControlTest>
@@ -479,15 +486,15 @@ namespace Xamarin.Forms.Core.UnitTests
                 ControlTest ctlTest = (ControlTest)e.Item;
                 if (ctlTest.Name.Equals(dataTest[0]))
                 {
-                    _editor.FontSize = 15.2;
+                    _editor.FontSize = size;
                 }
                 else if (ctlTest.Name.Equals(dataTest[1]))
                 {
-                    _editor.FontSize = 25.3;
+                    _editor.FontSize = size * 2;
                 }
                 else
                 {
-                    _editor.FontSize = 35.4;
+                    _editor.FontSize = size * 3;
                 }
             };
             ContentPage page = new ContentPage