From: zhouleonlei Date: Thu, 29 Apr 2021 10:06:32 +0000 (+0800) Subject: [NUI][Non-ACR] Fix the issue of text displaying abnormal for wearable X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F257683%2F2;p=test%2Ftct%2Fcsharp%2Fapi.git [NUI][Non-ACR] Fix the issue of text displaying abnormal for wearable https://code.sec.samsung.net/jira/browse/TSDF-1532 All text of button and text of result are not displayed Change-Id: Ie17bda90189d4f4d347ec2babad3bdb9710daf97 --- diff --git a/tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/WearableManualTestPage.cs b/tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/WearableManualTestPage.cs index 8f37c58..9f9a863 100755 --- a/tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/WearableManualTestPage.cs +++ b/tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/WearableManualTestPage.cs @@ -357,21 +357,21 @@ namespace Tizen.NUI.Wearable.Tests void SetCommonButtonStyle(Button btn, string text, int? left = null) { if (null == btn) return; - btn.Style.Text.Text = text; - btn.Style.Text.TextColor = Color.Green; + btn.Text = text; + btn.TextColor = Color.Green; if (left.HasValue) // for detail buttons { - btn.Style.Text.Position = new Position(left.Value, 0); - btn.Style.Text.Size = new Size(30, 30); - btn.Style.Text.PointSize = _pointSize; + btn.Position = new Position(left.Value, 0); + btn.Size = new Size(30, 30); + btn.PointSize = _pointSize; } else // for home buttons { - btn.Style.Text.PointSize = 6.0f; + btn.PointSize = 6.0f; } - btn.Style.Text.VerticalAlignment = VerticalAlignment.Bottom; - btn.Style.Text.HorizontalAlignment = HorizontalAlignment.Center; - btn.Style.BackgroundImage = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/tw_bottom_btn_bg.png"; + btn.TextLabel.VerticalAlignment = VerticalAlignment.Bottom; + btn.TextLabel.HorizontalAlignment = HorizontalAlignment.Center; + btn.BackgroundImage = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "/images/tw_bottom_btn_bg.png"; } void InitializeFirstPage() diff --git a/tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/testcase/TSNUIWatchApplication.cs b/tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/testcase/TSNUIWatchApplication.cs index 0c0a47f..b3288c4 100755 --- a/tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/testcase/TSNUIWatchApplication.cs +++ b/tct-suite-vs/Tizen.NUI.Wearable.Manual.Tests/testcase/TSNUIWatchApplication.cs @@ -54,13 +54,13 @@ namespace Tizen.NUI.Wearable.Tests private void CreateButton() { _infoButton = new Button(); - _infoButton.Style.Text.Text = "Clicked run, Please refer test step"; - _infoButton.Style.Text.PointSize = 5.0f; + _infoButton.Text = "Clicked run, Please refer test step"; + _infoButton.PointSize = 5.0f; if (ManualTest.IsWearable()) { - _infoButton.Style.Text.TextColor = Color.White; - _infoButton.Style.Text.HorizontalAlignment = HorizontalAlignment.Center; - _infoButton.Style.Text.VerticalAlignment = VerticalAlignment.Bottom; + _infoButton.TextLabel.TextColor = Color.White; + _infoButton.TextLabel.HorizontalAlignment = HorizontalAlignment.Center; + _infoButton.TextLabel.VerticalAlignment = VerticalAlignment.Bottom; } _infoButton.Size = new Size(300, 50); _testPage.ExecuteTC(_infoButton);