From: zhouleonlei Date: Tue, 29 Sep 2020 06:26:06 +0000 (+0800) Subject: [NUI][TCSACR-374] Remove the TCs of OnTouch X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d8f03772faef68dae33fbb7786c29a5ad89ca84;p=test%2Ftct%2Fcsharp%2Fapi.git [NUI][TCSACR-374] Remove the TCs of OnTouch OnTouch event has been deleted in Dali. Deprecate OnTouch in TizenFx https://github.com/Samsung/TizenFX/pull/2000 So remove TCs related to OnTouch Change-Id: I96db2875acae8e8cd5e5abb39106043db97d20c9 --- diff --git a/tct-suite-vs/Tizen.NUI.Components.Manual.Tests/testcase/TSButton.cs b/tct-suite-vs/Tizen.NUI.Components.Manual.Tests/testcase/TSButton.cs index 9b7bbd0..bb81e24 100755 --- a/tct-suite-vs/Tizen.NUI.Components.Manual.Tests/testcase/TSButton.cs +++ b/tct-suite-vs/Tizen.NUI.Components.Manual.Tests/testcase/TSButton.cs @@ -102,13 +102,6 @@ namespace Tizen.NUI.Components.Tests { Tizen.Log.Fatal("NUI.Components", "Button OnFocusLost!!!!!!!!!!!!!!!!!!!!!"); ManualTest.Confirm(); - } - - public override bool OnTouch(Touch touch) - { - Tizen.Log.Fatal("NUI.Components", "Button OnTouch!!!!!!!!!!!!!!!!!!!!!"); - ManualTest.Confirm(); - return true; } } @@ -250,42 +243,6 @@ namespace Tizen.NUI.Components.Tests await ManualTest.WaitForConfirm(); _testPage.ClearTestCase(_view); } - } - - [Test] - [Category("P1")] - [Description("Test: Click. Check whether the event will be triggered when user click the button")] - [Property("SPEC", "Tizen.NUI.Components.Button.OnTouch M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Zhou Lei, zhouleon.lei@samsung.com")] - [Precondition(1, "If test on TV, prepare mouse and connect to TV.")] - [Step(1, "Click run TC")] - [Step(2, "Click(Touch) the button.")] - [Step(3, "TC will pass after touch or click.")] - [Postcondition(1, "NA")] - public async Task OnTouch_CB() - { - _button = new MyButton(new ButtonStyle()); - CreateMyButton(_button, "Click me!"); - if (_isWearable) - { - _wearTestPage.ExecuteTC(_view); - } - else - { - _testPage.ExecuteTC(_view); - } - FocusManager.Instance.SetCurrentFocusView(_button); - await ManualTest.WaitForConfirm(); - if (_isWearable) - { - _wearTestPage.ClearTestCase(_view); - } - else - { - _testPage.ClearTestCase(_view); - } } } } diff --git a/tct-suite-vs/Tizen.NUI.Components.Manual.Tests/testcase/TSSwitch.cs b/tct-suite-vs/Tizen.NUI.Components.Manual.Tests/testcase/TSSwitch.cs index d5ebc1c..68d2eef 100755 --- a/tct-suite-vs/Tizen.NUI.Components.Manual.Tests/testcase/TSSwitch.cs +++ b/tct-suite-vs/Tizen.NUI.Components.Manual.Tests/testcase/TSSwitch.cs @@ -68,13 +68,6 @@ namespace Tizen.NUI.Components.Tests return true; } - public override bool OnTouch(Touch touch) - { - Tizen.Log.Fatal("NUI.Components", "Button OnTouch!!!!!!!!!!!!!!!!!!!!!"); - ManualTest.Confirm(); - return true; - } - protected override void OnClicked(ClickedEventArgs eventArgs) { Tizen.Log.Fatal("NUI.Components", "Button OnClick!!!!!!!!!!!!!!!!!!!!!"); @@ -155,32 +148,6 @@ namespace Tizen.NUI.Components.Tests [Test] [Category("P1")] - [Description("Test: Touch. Check whether the event will be triggered when user click(touch) the Switch")] - [Property("SPEC", "Tizen.NUI.Components.Switch.OnTouch M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Zhou Lei, zhouleon.lei@samsung.com")] - [Precondition(1, "If test on TV, prepare mouse and connect to TV.")] - [Step(1, "Click run TC")] - [Step(2, "Click(Touch) the Switch.")] - [Step(3, "TC will pass after touch or click.")] - [Postcondition(1, "NA")] - public async Task OnTouch_CB() - { - CreateSwitch(); - await ManualTest.WaitForConfirm(); - if (_isWearable) - { - _wearTestPage.ClearTestCase(_switch); - } - else - { - _testPage.ClearTestCase(_switch); - } - } - - [Test] - [Category("P1")] [Description("Test: Click. Check whether the event will be triggered when user press the key of remote-control")] [Property("SPEC", "Tizen.NUI.Components.Switch.OnKey M")] [Property("SPEC_URL", "-")]