[Non-ACR][NUI][Fix large text size problem in emul] 07/298507/1
authordongsug.song <dongsug.song@samsung.com>
Fri, 8 Sep 2023 05:00:49 +0000 (14:00 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Fri, 8 Sep 2023 05:00:49 +0000 (14:00 +0900)
Change-Id: I9460baefbb441b5a6d9494234118c4511df820dd

tct-suite-vs/Tizen.NUI.Manual.Tests/ManualTestPage.cs
tct-suite-vs/Tizen.NUI.Manual.Tests/Utils.cs

index 3bfec75..03f77e8 100755 (executable)
@@ -266,6 +266,10 @@ namespace Tizen.NUI.Tests
             btn.Feedback = false;
             btn.PointSize = _pointSize;
             float buttonWidth = ManualTest.IsMobile() ? Window.Instance.Size.Width * 0.18f : Window.Instance.Size.Width * 0.06f;
+            if (ManualTest.IsEmulator())
+            {
+                buttonWidth =  Window.Instance.Size.Width * 0.16f;
+            }
             btn.Size = new Size(buttonWidth, Window.Instance.Size.Height * 0.046f);
             btn.TextColor = new Color(0, 0, 0, 1);
             btn.ImageShadow = new ImageShadow
@@ -514,6 +518,10 @@ namespace Tizen.NUI.Tests
             _notRun.PointSize = _pointSize;
             _notRun.Text = "Not Run";
             float buttonWidth = ManualTest.IsMobile() ? Window.Instance.Size.Width * 0.18f : Window.Instance.Size.Width * 0.06f;
+            if (ManualTest.IsEmulator())
+            {
+                buttonWidth =  Window.Instance.Size.Width * 0.16f;
+            }
             _notRun.Size = new Size(buttonWidth, Window.Instance.Size.Height * 0.046f);
 
             _passButton = new Button();
index ed25d35..e347bf6 100755 (executable)
@@ -21,8 +21,8 @@ using System.Collections.Generic;
 using System.ComponentModel;
 using Tizen.NUI.BaseComponents;
 using Tizen.NUI;
-using Tizen.NUI.Components;\r
-\r
+using Tizen.NUI.Components;
+
 namespace Tizen.NUI.Tests
 {
 
@@ -178,12 +178,12 @@ namespace Tizen.NUI.Tests
             }
 
             if (ManualTest.IsWearable())
-            {\r
-                WearableManualTestNUI.GetInstance().UnlockUIButton();\r
+            {
+                WearableManualTestNUI.GetInstance().UnlockUIButton();
             }
-            else\r
-            {\r
-                ManualTestNUI.GetInstance().UnlockUIButton();\r
+            else
+            {
+                ManualTestNUI.GetInstance().UnlockUIButton();
             }
         }
 
@@ -231,13 +231,14 @@ namespace Tizen.NUI.Tests
             }
 
             return false;
-        }\r
-\r
+        }
+
         public static float GetPointSize()
         {
             float retValue = 10.0f; //default
             string value;
             Tizen.System.Information.TryGetValue("tizen.org/feature/profile", out value);
+            Tizen.Log.Debug("NUITC", $"GetPointSize() value={value}");
             switch (value)
             {
                 case "wearable":
@@ -250,6 +251,13 @@ namespace Tizen.NUI.Tests
                     retValue = 20.0f;
                     break;
             }
+
+            if (ManualTest.IsEmulator())
+            {
+                retValue =  4.5f;
+            }
+
+            Tizen.Log.Debug("NUITC", $"GetPointSize() retValue={retValue}");
             return retValue;
         }