From: Dongsug Song Date: Wed, 19 Feb 2020 10:53:51 +0000 (+0900) Subject: [Non-ACR][NUI][Fix XU3 TCT fail issue] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F225387%2F6;p=test%2Ftct%2Fcsharp%2Fapi.git [Non-ACR][NUI][Fix XU3 TCT fail issue] - inputMethodContext.Dispose() is deleted because it is useless. NUI provides DisposeQueue which does disposal process automatically. - WebViewEventArgs should be removed. it is hidden API (Not public opened API) and it causes crash in VD TV target because LightWeightEngine has package signing violation. Change-Id: I897b808b672c13fc616ac4c8a81039f9e04341ee Signed-off-by: Dongsug Song --- diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSInputMethodContext.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSInputMethodContext.cs index 913a184fc..2c3b3ca67 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSInputMethodContext.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSInputMethodContext.cs @@ -9,6 +9,8 @@ using Tizen.NUI.Test; namespace Tizen.NUI.Tests { + using tlog = Tizen.Log; + [TestFixture] [Description("Tizen.NUI.InputMethodContext Tests")] public class InputMethodContextTests @@ -28,7 +30,7 @@ namespace Tizen.NUI.Tests [TearDown] public void Destroy() { - Tizen.Log.Info(TAG, "Destroy() is called!"); + tlog.Debug(TAG, "Destroy() is called!"); } public void OnInputMethodContextEvent(object sender, EventArgs e) @@ -38,7 +40,7 @@ namespace Tizen.NUI.Tests public void OnInputMethodContextEvent1(object sender, EventArgs e) { - Tizen.Log.Fatal("NUI", $"TP#3 LanguageChanged_EVENT() OnInputMethodContextEvent1() TimeStamp={DateTime.Now.ToString("hh:mm:ss.fff")}"); + tlog.Debug(TAG, $"LanguageChanged_EVENT() OnInputMethodContextEvent1() TimeStamp={DateTime.Now.ToString("hh:mm:ss.fff")}"); _temp = 10; } @@ -46,7 +48,7 @@ namespace Tizen.NUI.Tests { _temp = 10; InputMethodContext.CallbackData callbackData = new InputMethodContext.CallbackData(true, 0, e.EventData.PredictiveString, false); - Tizen.Log.Fatal("NUI", "Inputmethod Manager return callbackData!!!"); + tlog.Debug(TAG, "Inputmethod Manager return callbackData!!!"); return callbackData; } @@ -59,18 +61,19 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void DestroyContext_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); - Assert.IsNotNull(inputMethodContext, "The object should not be null!"); + var inputMethodContext = new InputMethodContext(); + Assert.IsNotNull(inputMethodContext, "The inputMethodContext object should not be null!"); + + tlog.Debug(TAG, $"DestroyContext_NO_RETURN_VALUE() checked if inputMethodContext object is null"); try { inputMethodContext.DestroyContext(); + tlog.Debug(TAG, $"DestroyContext_NO_RETURN_VALUE() inputMethodContext.DestroyContext() called"); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -85,7 +88,7 @@ namespace Tizen.NUI.Tests var inputMethodContext = new InputMethodContext(); Assert.NotNull(inputMethodContext, "Should not be null"); Assert.IsInstanceOf(inputMethodContext, "Should be the instance of InputMethodContext Type"); - inputMethodContext.Dispose(); + tlog.Debug(TAG, $"InputMethodContext_INIT() checked if inputMethodContext object is null"); } [Test] @@ -95,19 +98,25 @@ namespace Tizen.NUI.Tests [Property("SPEC_URL", " - ")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] - public void Activate_NO_RETURN_VALUE() + public async Task Activate_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); + + Assert.IsNotNull(inputMethodContext, "The inputMethodContext object should not be null!"); + tlog.Debug(TAG, $"Activate_NO_RETURN_VALUE() checked if inputMethodContext object is null"); + try { inputMethodContext.Activate(); + tlog.Debug(TAG, $"Activate_NO_RETURN_VALUE() inputMethodContext.Activate() called!"); + + await Task.Delay(500); + tlog.Debug(TAG, $"Activate_NO_RETURN_VALUE() 500ms delay added"); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -119,7 +128,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void Deactivate_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.Deactivate(); @@ -128,8 +137,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -141,7 +148,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void RestoreAfterFocusLost_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.SetRestoreAfterFocusLost(true); @@ -153,8 +160,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -166,7 +171,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void SetRestoreAfterFocusLost_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.SetRestoreAfterFocusLost(true); @@ -178,8 +183,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -191,7 +194,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void Reset_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.Reset(); @@ -200,8 +203,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -213,7 +214,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void NotifyCursorPosition_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.NotifyCursorPosition(); @@ -222,8 +223,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -235,7 +234,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void SetCursorPosition_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); uint cursorPosition = 0; try { @@ -247,8 +246,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -260,11 +257,10 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void GetCursorPosition_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); inputMethodContext.SetCursorPosition(100); uint pos = inputMethodContext.GetCursorPosition(); Assert.AreEqual(100, pos, "Should be equal to GetCursorPosition"); - inputMethodContext.Dispose(); } [Test] @@ -276,7 +272,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void SetSurroundingText_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { string example = "Test"; @@ -287,8 +283,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -300,11 +294,10 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void GetSurroundingText_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); inputMethodContext.SetSurroundingText("Test"); string text = inputMethodContext.GetSurroundingText(); Assert.AreEqual("Test", text, "Should be equal to GetSurroundingText"); - inputMethodContext.Dispose(); } [Test] @@ -316,7 +309,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void NotifyTextInputMultiLine_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.NotifyTextInputMultiLine(true); @@ -326,8 +319,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -339,13 +330,11 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void GetTextDirection_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); if (inputMethodContext) { Assert.AreEqual(InputMethodContext.TextDirection.LeftToRight, inputMethodContext.GetTextDirection(), "Should be equal"); } - - inputMethodContext.Dispose(); } [Test] @@ -358,7 +347,7 @@ namespace Tizen.NUI.Tests public void TextPrediction_SET_GET_VALUE() { /* TEST CODE */ - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); inputMethodContext.TextPrediction = true; Assert.AreEqual(true, inputMethodContext.TextPrediction, "Should be true but error"); inputMethodContext.TextPrediction = false; @@ -374,12 +363,12 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public async Task GetInputMethodArea_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); inputMethodContext.Activate(); inputMethodContext.ShowInputPanel(); await Task.Delay(300); - Tizen.Log.Debug("NUI", "GetInputMethodArea_RETURN_VALUE! Add 300ms delay!"); + tlog.Debug(TAG, "GetInputMethodArea_RETURN_VALUE! Add 300ms delay!"); if (inputMethodContext) { @@ -387,8 +376,6 @@ namespace Tizen.NUI.Tests Assert.GreaterOrEqual(rect.X, 0, "Should be greater than 0!"); Assert.GreaterOrEqual(rect.Y, 0, "Should be greater than 0!"); } - - inputMethodContext.Dispose(); } [Test] @@ -400,19 +387,17 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void SetInputPanelUserData_TEST() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.SetInputPanelUserData("layouttype = 1 & entrylimit = 255 & action = clearall_for_voice_commit & caller = org.volt.search - all"); } catch (Exception e) { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); + tlog.Error(TAG, "Caught Exception" + e.ToString()); LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -424,7 +409,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void GetInputPanelUserData_TEST() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.SetInputPanelUserData("layouttype = 1 & entrylimit = 255 & action = clearall_for_voice_commit & caller = org.volt.search - all"); @@ -433,12 +418,10 @@ namespace Tizen.NUI.Tests } catch (Exception e) { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); + tlog.Error(TAG, "Caught Exception" + e.ToString()); LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -450,7 +433,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public async Task GetInputPanelState_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); Assert.IsNotNull(inputMethodContext, "InputMethodContext should not be null"); if (inputMethodContext.RestoreAfterFocusLost()) { @@ -460,7 +443,6 @@ namespace Tizen.NUI.Tests inputMethodContext.HideInputPanel(); await Task.Delay(300); Assert.AreEqual(InputMethodContext.State.Hide, inputMethodContext.GetInputPanelState(), "Should be equal"); - inputMethodContext.Dispose(); } [Test] @@ -472,7 +454,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void SetReturnKeyState_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.SetReturnKeyState(true); @@ -482,8 +464,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -493,20 +473,29 @@ namespace Tizen.NUI.Tests [Property("SPEC_URL", " - ")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] - public void AutoEnableInputPanel_NO_RETURN_VALUE() + public async Task AutoEnableInputPanel_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { + tlog.Debug(TAG, $"AutoEnableInputPanel_NO_RETURN_VALUE: start"); + inputMethodContext.AutoEnableInputPanel(true); + tlog.Debug(TAG, $"AutoEnableInputPanel_NO_RETURN_VALUE: inputMethodContext.AutoEnableInputPanel(true) called"); + + await Task.Delay(500); + tlog.Debug(TAG, $"AutoEnableInputPanel_NO_RETURN_VALUE: add delay 500ms"); + inputMethodContext.AutoEnableInputPanel(false); + tlog.Debug(TAG, $"AutoEnableInputPanel_NO_RETURN_VALUE: inputMethodContext.AutoEnableInputPanel(false) called"); + + await Task.Delay(500); + tlog.Debug(TAG, $"AutoEnableInputPanel_NO_RETURN_VALUE: add delay 500ms"); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -516,20 +505,19 @@ namespace Tizen.NUI.Tests [Property("SPEC_URL", " - ")] [Property("CRITERIA", "MR")] [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] - public void ShowInputPanel_NO_RETURN_VALUE() + public async Task ShowInputPanel_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.Activate(); inputMethodContext.ShowInputPanel(); + await Task.Delay(500); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -541,7 +529,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void HideInputPanel_NO_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); try { inputMethodContext.Deactivate(); @@ -551,8 +539,6 @@ namespace Tizen.NUI.Tests { Assert.Fail("Caught Exception" + e.ToString()); } - - inputMethodContext.Dispose(); } [Test] @@ -564,13 +550,11 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public void GetKeyboardType_RETURN_VALUE() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); if (inputMethodContext) { Assert.AreEqual(InputMethodContext.KeyboardType.SoftwareKeyboard, inputMethodContext.GetKeyboardType(), "Should be not null"); } - - inputMethodContext.Dispose(); } [Test] @@ -590,7 +574,7 @@ namespace Tizen.NUI.Tests Focusable = true, }; - InputMethodContext inputMethodContext = _editor.GetInputMethodContext(); + var inputMethodContext = _editor.GetInputMethodContext(); Assert.IsNotNull(inputMethodContext, "InputMethodContext should not be null after using GetInputMethodContext"); inputMethodContext.Activate(); @@ -598,20 +582,18 @@ namespace Tizen.NUI.Tests await Task.Delay(500); if (inputMethodContext) { - if(inputMethodContext.GetInputPanelLocale() != null) - { - if (inputMethodContext.GetInputPanelLocale() != "") - { - Assert.IsTrue(inputMethodContext.GetInputPanelLocale().Contains("en_US"), "Default value is not en_US"); - } - else - { - Assert.Pass("InputPanelLocale of InputMethod is not set in this profile"); - } + if(inputMethodContext.GetInputPanelLocale() != null) + { + if (inputMethodContext.GetInputPanelLocale() != "") + { + Assert.IsTrue(inputMethodContext.GetInputPanelLocale().Contains("en_US"), "Default value is not en_US"); + } + else + { + Assert.Pass("InputPanelLocale of InputMethod is not set in this profile"); + } } } - - inputMethodContext.Dispose(); } [Test] @@ -623,7 +605,7 @@ namespace Tizen.NUI.Tests [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")] public async Task Activated_EVENT() { - InputMethodContext inputMethodContext = new InputMethodContext(); + var inputMethodContext = new InputMethodContext(); if (inputMethodContext) { _temp = 0; @@ -633,8 +615,6 @@ namespace Tizen.NUI.Tests Assert.AreEqual(10, _temp, "Should be 10"); inputMethodContext.Activated -= OnInputMethodContextEvent; } - - inputMethodContext.Dispose(); } [Test] @@ -654,7 +634,7 @@ namespace Tizen.NUI.Tests Focusable = true, }; Window.Instance.GetDefaultLayer().Add(_editor); - InputMethodContext inputMethodContext = _editor.GetInputMethodContext(); + var inputMethodContext = _editor.GetInputMethodContext(); if (inputMethodContext) { _temp = 0; @@ -689,7 +669,7 @@ namespace Tizen.NUI.Tests Focusable = true, }; Window.Instance.GetDefaultLayer().Add(_editor); - InputMethodContext inputMethodContext = _editor.GetInputMethodContext(); + var inputMethodContext = _editor.GetInputMethodContext(); if (inputMethodContext) { _temp = 0; @@ -702,7 +682,7 @@ namespace Tizen.NUI.Tests inputMethodContext.ShowInputPanel(); await Task.Delay(200); - Tizen.Log.Debug("NUI", "StatusChanged_EVENT Add 200ms delay"); + tlog.Debug(TAG, "StatusChanged_EVENT Add 200ms delay"); Assert.AreEqual(10, _temp, "Should be 10"); inputMethodContext.StatusChanged -= OnInputMethodContextEvent; @@ -728,7 +708,7 @@ namespace Tizen.NUI.Tests Focusable = true, }; Window.Instance.GetDefaultLayer().Add(_editor); - InputMethodContext inputMethodContext = _editor.GetInputMethodContext(); + var inputMethodContext = _editor.GetInputMethodContext(); if (inputMethodContext) { _temp = 0; @@ -764,37 +744,35 @@ namespace Tizen.NUI.Tests Focusable = true, }; Window.Instance.GetDefaultLayer().Add(_editor); - InputMethodContext inputMethodContext = _editor.GetInputMethodContext(); + var inputMethodContext = _editor.GetInputMethodContext(); if (inputMethodContext) - { - if (inputMethodContext.GetInputPanelLocale() != null) - { - if (inputMethodContext.GetInputPanelLocale() == "") - { - Assert.Pass("InputPanelLocale of InputMethod is not set in this profile"); - } - else - { - _temp = 0; - inputMethodContext.LanguageChanged += OnInputMethodContextEvent1; - inputMethodContext.Deactivate(); - inputMethodContext.HideInputPanel(); - await Task.Delay(500); - Tizen.Log.Debug("NUI", $"TP#1 LanguageChanged_EVENT() HideInputPanel() TimeStamp={DateTime.Now.ToString("hh:mm:ss.fff")}"); - inputMethodContext.Activate(); - inputMethodContext.ShowInputPanel(); - await Task.Delay(500); - Tizen.Log.Debug("NUI", $"TP#2 LanguageChanged_EVENT() ShowInputPanel() TimeStamp={DateTime.Now.ToString("hh:mm:ss.fff")}"); - - Assert.AreEqual(10, _temp, "Should be 10"); - inputMethodContext.LanguageChanged -= OnInputMethodContextEvent1; - } + { + if (inputMethodContext.GetInputPanelLocale() != null) + { + if (inputMethodContext.GetInputPanelLocale() == "") + { + Assert.Pass("InputPanelLocale of InputMethod is not set in this profile"); + } + else + { + _temp = 0; + inputMethodContext.LanguageChanged += OnInputMethodContextEvent1; + inputMethodContext.Deactivate(); + inputMethodContext.HideInputPanel(); + await Task.Delay(500); + tlog.Debug(TAG, $"LanguageChanged_EVENT() HideInputPanel() TimeStamp={DateTime.Now.ToString("hh:mm:ss.fff")}"); + inputMethodContext.Activate(); + inputMethodContext.ShowInputPanel(); + await Task.Delay(500); + tlog.Debug(TAG, $"LanguageChanged_EVENT() ShowInputPanel() TimeStamp={DateTime.Now.ToString("hh:mm:ss.fff")}"); + + Assert.AreEqual(10, _temp, "Should be 10"); + inputMethodContext.LanguageChanged -= OnInputMethodContextEvent1; + } } } - Window.Instance.GetDefaultLayer().Remove(_editor); } - } } diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWebView.WebViewEventArgs.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWebView.WebViewEventArgs.cs deleted file mode 100755 index 2e895ec47..000000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSWebView.WebViewEventArgs.cs +++ /dev/null @@ -1,78 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.WebView.WebViewEventArgs Tests")] - public class WebViewEventArgsTests - { - private string TAG = "NUI"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("WebViewEventArgsTests"); - App.MainTitleChangeBackgroundColor(null); - Tizen.NUI.EnvironmentVariable.SetEnvironmentVariable("DALI_WEB_ENGINE_NAME", "lwe"); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a WebViewPageLoadEventArgs object. Check whether WebViewPageLoadEventArgs is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.WebViewPageLoadEventArgs.WebViewPageLoadEventArgs C")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")] - public void WebViewPageLoadEventArgs_INIT() - { - /* TEST CODE */ - var webViewPageLoadEventArgs = new WebViewPageLoadEventArgs(); - Assert.IsNotNull(webViewPageLoadEventArgs, "Can't create success object WebViewPageLoadEventArgs"); - Assert.IsInstanceOf(webViewPageLoadEventArgs, "Should be an instance of WebViewPageLoadEventArgs type."); - } - - [Test] - [Category("P1")] - [Description("Test WebView. Check whether WebView is readable and writable.")] - [Property("SPEC", "Tizen.NUI.WebViewPageLoadEventArgs.WebView A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")] - public void WebView_SET_GET_VALUE() - { - /* TEST CODE */ - var webViewEventArgs = new WebViewPageLoadEventArgs(); - WebView webView = new WebView(); - webViewEventArgs.WebView = webView; - Assert.AreEqual(webView, webViewEventArgs.WebView, "Retrieved WebView should be equal to set value"); - } - - [Test] - [Category("P1")] - [Description("Test PageUrl. Check whether PageUrl is readable and writable.")] - [Property("SPEC", "Tizen.NUI.WebViewPageLoadEventArgs.PageUrl A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")] - public void PageUrl_SET_GET_VALUE() - { - /* TEST CODE */ - var webViewEventArgs = new WebViewPageLoadEventArgs(); - string webUrl = "www.samsung.com"; - webViewEventArgs.PageUrl = webUrl; - Assert.AreEqual(webUrl, webViewEventArgs.PageUrl, "Retrieved PageUrl should be equal to set value"); - } - } -}