From 8d66597704f6bcc1086f4554d10188fc91e84b05 Mon Sep 17 00:00:00 2001 From: Jeonghyun Yun Date: Thu, 24 Sep 2020 17:51:21 +0900 Subject: [PATCH] [ElmSharp][Non-ACR] Updated GenList & GenGrid TC for more clarify Change-Id: I30408970ed6ef8a1e556b05457a294eca973a421 Signed-off-by: Jeonghyun Yun --- .../testcase/TSGenGrid.cs | 6 +++--- .../testcase/TSGenList.cs | 21 +++++++++++++++++++-- 2 files changed, 22 insertions(+), 5 deletions(-) mode change 100755 => 100644 tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs mode change 100755 => 100644 tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs old mode 100755 new mode 100644 index e661634..3b7aab9 --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs @@ -899,7 +899,7 @@ namespace ElmSharp.Tests [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")] [Precondition(1, "NA")] [Step(1, "Click Run tc.")] - [Step(2, "Click item.")] + [Step(2, "Click item. (Move focus to item on TV)")] [Postcondition(1, "NA")] public async Task ItemFocused_EVENT() { @@ -926,8 +926,8 @@ namespace ElmSharp.Tests [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")] [Precondition(1, "NA")] [Step(1, "Click Run tc.")] - [Step(2, "Click item.")] - [Step(3, "Click other item.")] + [Step(2, "Click item. (Move focus to item on TV)")] + [Step(3, "Click other item. (Move focus to other item on TV)")] [Postcondition(1, "NA")] public async Task ItemUnfocused_EVENT() { diff --git a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs old mode 100755 new mode 100644 index 7cd79d9..848530d --- a/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs @@ -369,6 +369,11 @@ namespace ElmSharp.Tests _genList.UpdateRealizedItems(); } + private void ClickedSetUnrealize(object sender, EventArgs evt) + { + _genList.ItemUnrealized += ItemEventConfirm; + } + private void ClickedUnrealize(object sender, EventArgs evt) { _genList.ScrollTo(_genListItemList[_genListItemList.Count - 1], ScrollToPosition.In, true); @@ -1180,7 +1185,8 @@ namespace ElmSharp.Tests [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")] [Precondition(1, "NA")] [Step(1, "Click Run tc.")] - [Step(2, "Please click ScrollToLast button.")] + [Step(2, "Please click SetItemUnrealizedCallback button.")] + [Step(3, "Please click ScrollToLast button.")] [Postcondition(1, "NA")] public async Task ItemUnrealized_EVENT() { @@ -1188,7 +1194,6 @@ namespace ElmSharp.Tests { _genListItemList.Add(_genList.Append(_defaultClass, "Item" + i.ToString())); } - _genList.ItemUnrealized += ItemEventConfirm; _button = new Button(_window) { @@ -1199,6 +1204,15 @@ namespace ElmSharp.Tests _button.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; _button.Clicked += ClickedUnrealize; + _button2 = new Button(_window) + { + Text = "SetItemUnrealizedCallback", + AlignmentX = -1, + WeightX = 1 + }; + _button2.EdjeObject["elm.text"].TextStyle = "DEFAULT = 'color=#000000 font_size=30 align=center valign=center wrap=word'"; + _button2.Clicked += ClickedSetUnrealize; + _box = new Box(_window) { AlignmentX = -1, @@ -1207,9 +1221,11 @@ namespace ElmSharp.Tests WeightY = 1 }; _box.PackEnd(_genList); + _box.PackEnd(_button2); _box.PackEnd(_button); _box.Show(); _button.Show(); + _button2.Show(); _genList.Show(); _testPage.ExecuteTC(_box); @@ -1218,6 +1234,7 @@ namespace ElmSharp.Tests _genList.ItemUnrealized -= ItemEventConfirm; _button.Clicked -= ClickedUnrealize; + _button2.Clicked -= ClickedSetUnrealize; } [Test] -- 2.7.4