[ElmSharp][Non-ACR] Updated GenList & GenGrid TC for more clarify 02/244802/1
authorJeonghyun Yun <jh0506.yun@samsung.com>
Thu, 24 Sep 2020 08:51:21 +0000 (17:51 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Thu, 24 Sep 2020 08:51:45 +0000 (17:51 +0900)
Change-Id: I30408970ed6ef8a1e556b05457a294eca973a421
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenGrid.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSGenList.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index e661634..3b7aab9
@@ -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()
         {
old mode 100755 (executable)
new mode 100644 (file)
index 7cd79d9..848530d
@@ -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]