From: Jeonghyun Yun Date: Mon, 12 Oct 2020 07:10:55 +0000 (+0900) Subject: [ElmSharp][Non-ACR] Updated TC for tv product X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=972aaf80179c4f4f0e1383ec8741317306d8a935;p=test%2Ftct%2Fcsharp%2Fapi.git [ElmSharp][Non-ACR] Updated TC for tv product Change-Id: Id0434e67d02a3584deebd96389adc47cdce7aba7 Signed-off-by: Jeonghyun Yun --- diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/MainPage.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/MainPage.cs old mode 100755 new mode 100644 index a6eee07..d38ea66 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/MainPage.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/MainPage.cs @@ -127,6 +127,8 @@ namespace NUnit.Framework private void MakeWindowPage() { _mainLayout = new Box(_mainWindow); + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) + _mainLayout.BackgroundColor = Color.Aqua; _summaryLabel = new Label(_mainWindow) { @@ -140,6 +142,8 @@ namespace NUnit.Framework var navigationLayout = new Box(_mainWindow) { IsHorizontal = true, + AlignmentX = -1, + WeightX = 1, }; var runBtn = new Button(_mainWindow) diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/Program.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/Program.cs old mode 100755 new mode 100644 index d25cd7e..8e0bacc --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/Program.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/Program.cs @@ -18,6 +18,7 @@ using System.IO; using NUnit.Framework; using Tizen.Applications; using ElmSharp; +using ElmSharp.Tests; namespace ElmSharpApplication.Tizen { @@ -82,6 +83,8 @@ namespace ElmSharpApplication.Tizen { Elementary.Initialize(); Elementary.ThemeOverlay(); + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) + Elementary.AddThemeOverlay("/usr/share/elm-sharp/vd-elm-sharp-theme.edj"); testRunner = new Program(); testRunner.Run(args); diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/TestPage.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/TestPage.cs old mode 100755 new mode 100644 index 4227c93..7bc64b8 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/TestPage.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/TestPage.cs @@ -226,6 +226,8 @@ namespace NUnit.Framework private void MakeTestPage() { _mainBox = new Box(_mainWindow); + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) + _mainBox.BackgroundColor = Color.Aqua; _descriptionTitle = new Label(_mainWindow) { @@ -545,7 +547,8 @@ namespace NUnit.Framework private void SetThemeColor(Layout widget) { - widget.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + widget.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; } private void ShowDescription() diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSButton.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSButton.cs old mode 100755 new mode 100644 index f89cf0e..d967a54 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSButton.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSButton.cs @@ -63,7 +63,8 @@ namespace ElmSharp.Tests MinimumWidth = 100, MinimumHeight = 80, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _testPage.ExecuteTC(_button); } @@ -87,7 +88,8 @@ namespace ElmSharp.Tests MinimumWidth = 100, MinimumHeight = 80, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; layout.PackEnd(_button); _button.Show(); diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs index 0ffb791..2f8dec2 100644 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs @@ -150,7 +150,8 @@ namespace ElmSharp.Tests MinimumHeight = 80 }; _entry.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000'"; - _button1.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button1.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _layout.PackEnd(_entry); _layout.PackEnd(_button1); _entry.Show(); @@ -193,8 +194,11 @@ namespace ElmSharp.Tests MinimumHeight = 80 }; _entry.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000'"; - _button1.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; - _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + { + _button1.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + } _layout.PackEnd(_entry); _layout.PackEnd(_button1); _layout.PackEnd(_button2); diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObject.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObject.cs index b8eec81..a185100 100644 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObject.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObject.cs @@ -124,7 +124,8 @@ namespace ElmSharp.Tests MinimumWidth = 100, MinimumHeight = 80, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _testPage.ExecuteTC(_button); } diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObjectEvent.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObjectEvent.cs old mode 100755 new mode 100644 index c350ee8..ce35479 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObjectEvent.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObjectEvent.cs @@ -93,7 +93,8 @@ namespace ElmSharp.Tests MinimumWidth = 100, MinimumHeight = 80, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _testPage.ExecuteTC(_button); } @@ -116,7 +117,8 @@ namespace ElmSharp.Tests MinimumWidth = 100, MinimumHeight = 80, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _button.Show(); _DisButton = new Button(_window) @@ -127,7 +129,8 @@ namespace ElmSharp.Tests MinimumWidth = 100, MinimumHeight = 80, }; - _DisButton.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _DisButton.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _DisButton.Show(); _box.PackEnd(_button); diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs index 3b7aab9..ad5f34a 100644 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs @@ -308,7 +308,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedClear; @@ -357,7 +358,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedInsertBefore; @@ -406,7 +408,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedPrepend; @@ -456,7 +459,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedScrollTo1; @@ -466,7 +470,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button2.Clicked += OnClickedScrollTo2; @@ -524,7 +529,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedUpdateRealized; _box = new Box(_window) @@ -571,7 +577,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedCheckGetItem; @@ -784,7 +791,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedDelete; diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGridItem.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGridItem.cs old mode 100755 new mode 100644 index c678ae2..f866d20 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGridItem.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGridItem.cs @@ -245,7 +245,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClicked; _box = new Box(_window) diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs index 848530d..884043a 100644 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs @@ -504,7 +504,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedClear; _box = new Box(_window) @@ -552,7 +553,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedInsertBeforeDefault; _box = new Box(_window) { @@ -601,7 +603,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedInsertBeforeGroup; _box = new Box(_window) @@ -658,7 +661,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedInsertBeforeTree; _box = new Box(_window) @@ -712,7 +716,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedPrependDefault; _box = new Box(_window) @@ -762,7 +767,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedPrependGroup; _box = new Box(_window) @@ -819,7 +825,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedPrependTree; _box = new Box(_window) @@ -874,7 +881,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedScrollTo1; _button2 = new Button(_window) @@ -883,7 +891,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button2.Clicked += ClickedScrollTo2; @@ -941,7 +950,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedUpdate; _box = new Box(_window) @@ -988,7 +998,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedCheckGetItem; @@ -1201,7 +1212,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedUnrealize; _button2 = new Button(_window) @@ -1210,7 +1222,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button2.Clicked += ClickedSetUnrealize; _box = new Box(_window) @@ -1399,7 +1412,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedScrollTo2; _box = new Box(_window) @@ -1447,7 +1461,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1 }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedScrollTo2; _box = new Box(_window) @@ -1561,7 +1576,8 @@ namespace ElmSharp.Tests WeightX = 1, IsEnabled = false }; - _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button = new Button(_window) { @@ -1569,7 +1585,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedSetFocus; _box = new Box(_window) diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenListItem.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenListItem.cs old mode 100755 new mode 100644 index a73f28f..ce8edc1 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenListItem.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenListItem.cs @@ -257,7 +257,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedUpdate; _box = new Box(_window) @@ -310,7 +311,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedUpdateField; _box = new Box(_window) @@ -362,7 +364,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedUpdateItemClass; _box = new Box(_window) @@ -410,7 +413,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += OnClickedCheckItemDepth; diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSList.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSList.cs old mode 100755 new mode 100644 index c14ed7a..c13bc94 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSList.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSList.cs @@ -230,7 +230,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedClear; _box = new Box(_window) @@ -279,7 +280,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedPrepend; _box = new Box(_window) @@ -326,7 +328,8 @@ namespace ElmSharp.Tests AlignmentX = -1, WeightX = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedPrepend2; _box = new Box(_window) diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSProgressBar.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSProgressBar.cs old mode 100755 new mode 100644 index 04686f6..0c61b8f --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSProgressBar.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSProgressBar.cs @@ -106,7 +106,8 @@ namespace ElmSharp.Tests WeightX = 0.5, WeightY = 1, }; - _btn.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _btn.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _btn.Show(); _box.PackStart(_btn); @@ -264,6 +265,10 @@ namespace ElmSharp.Tests { _progressbar.Style = "process/small"; } + else if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) + { + _progressbar.Style = "process"; + } else { _progressbar.Style = "wheel"; @@ -298,6 +303,10 @@ namespace ElmSharp.Tests { _progressbar.Style = "process/small"; } + else if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) + { + _progressbar.Style = "process"; + } else { _progressbar.Style = "wheel"; diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSRadio.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSRadio.cs old mode 100755 new mode 100644 index 84d332f..3bb3655 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSRadio.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSRadio.cs @@ -44,6 +44,8 @@ namespace ElmSharp.Tests WeightX = 1, WeightY = 1 }; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) + _box.BackgroundColor = Color.Aqua; } [TearDown] @@ -103,7 +105,8 @@ namespace ElmSharp.Tests WeightX = 0.5, WeightY = 1, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _button.Show(); _box.PackStart(_button); diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSSlider.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSSlider.cs index 141e927..abfe218 100644 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSSlider.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSSlider.cs @@ -102,7 +102,8 @@ namespace ElmSharp.Tests WeightX = 0.5, WeightY = 1, }; - _btn.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _btn.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _btn.Show(); _box.PackStart(_btn); diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSSpinner.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSSpinner.cs old mode 100755 new mode 100644 index 4399233..174a5c3 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSSpinner.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSSpinner.cs @@ -99,7 +99,8 @@ namespace ElmSharp.Tests MinimumWidth = 100, MinimumHeight = 80, }; - _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) != 0) + _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#FFFFFF font_size=25 align=center valign=center wrap=char'"; _layout.PackEnd(_button); _layout.PackEnd(_spinner); diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSTable.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSTable.cs index 97afb87..9100a02 100644 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSTable.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSTable.cs @@ -94,7 +94,9 @@ namespace ElmSharp.Tests WeightY = 1 }; _layout.Show(); - + if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) + _layout.BackgroundColor = Color.Aqua; + _table = new Table(_window) { PaddingX = 10,