From e057ca981f190e8da7d6e6657e864a37aaed3340 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Fri, 6 Dec 2019 12:12:17 +0900 Subject: [PATCH] [NUI][TCSACR-290] Remove ImfManager Change-Id: I1e73c2a58574a09ca7372e003762515cffd47ad7 Signed-off-by: huiyu.eun --- .../testcase/TSImfManager.ActivatedEventArgs.cs | 63 -- .../TSImfManager.EventReceivedEventArgs.cs | 79 --- .../testcase/TSImfManager.ImfCallbackData.cs | 119 ---- .../testcase/TSImfManager.ImfEventData.cs | 119 ---- .../TSImfManager.KeyboardTypeChangedEventArgs.cs | 61 -- .../TSImfManager.LanguageChangedEventArgs.cs | 61 -- .../testcase/TSImfManager.ResizedEventArgs.cs | 61 -- .../TSImfManager.StatusChangedEventArgs.cs | 61 -- .../Tizen.NUI.Tests/testcase/TSImfManager.cs | 754 --------------------- 9 files changed, 1378 deletions(-) delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ActivatedEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.EventReceivedEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ImfCallbackData.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ImfEventData.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.KeyboardTypeChangedEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.LanguageChangedEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ResizedEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.StatusChangedEventArgs.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.cs diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ActivatedEventArgs.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ActivatedEventArgs.cs deleted file mode 100755 index c3c338e..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ActivatedEventArgs.cs +++ /dev/null @@ -1,63 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager.ActivatedEventArgs Tests")] - public class ImfManagerActivatedEventArgsTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("ActivatedEventArgsTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a ActivatedEventArgs object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ActivatedEventArgs.ActivatedEventArgs C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void ActivatedEventArgs_INIT() - { - var activatedEventArgs = new ImfManager.ActivatedEventArgs(); - Assert.NotNull(activatedEventArgs, "Should be not null"); - Assert.IsInstanceOf(activatedEventArgs, "Should be an instance of ImfManager.ActivatedEventArgs"); - } - - [Test] - [Category("P1")] - [Description("Test ImfManager.Check whether ImfManager is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ActivatedEventArgs.ImfManager A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void ImfManager_SET_GET_VALUE() - { - ImfManager.ActivatedEventArgs activatedEventArgs = new ImfManager.ActivatedEventArgs(); - activatedEventArgs.ImfManager = ImfManager.Get(); - ImfManager manager = activatedEventArgs.ImfManager; - Assert.NotNull(manager, "Should be not null"); - Assert.IsInstanceOf(manager, "Should be an instance of ImfManager"); - } - } -} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.EventReceivedEventArgs.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.EventReceivedEventArgs.cs deleted file mode 100755 index e5d09fe..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.EventReceivedEventArgs.cs +++ /dev/null @@ -1,79 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager.EventReceivedEventArgs Tests")] - public class ImfManagerEventReceivedEventArgsTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("EventReceivedEventArgsTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a eventReceivedEventArgs object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.EventReceivedEventArgs.EventReceivedEventArgs C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void EventReceivedEventArgs_INIT() - { - var eventReceivedEventArgs = new ImfManager.EventReceivedEventArgs(); - Assert.NotNull(eventReceivedEventArgs, "Should be not null"); - Assert.IsInstanceOf(eventReceivedEventArgs, "Should be an instance of ImfManager.EventReceivedEventArgs"); - } - - [Test] - [Category("P1")] - [Description("Test ImfManager.Check whether ImfManager is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.EventReceivedEventArgs.ImfEventData A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void ImfEventData_SET_GET_VALUE() - { - ImfManager.EventReceivedEventArgs eventReceivedEventArgs = new ImfManager.EventReceivedEventArgs(); - eventReceivedEventArgs.ImfEventData = new ImfManager.ImfEventData(); - ImfManager.ImfEventData imfEventData = eventReceivedEventArgs.ImfEventData;; - Assert.NotNull(imfEventData, "Should be not null"); - Assert.IsInstanceOf(imfEventData, "Should be an instance of ImfManager.ImfEventData"); - } - - [Test] - [Category("P1")] - [Description("Test ImfManager.Check whether ImfManager is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.EventReceivedEventArgs.ImfManager A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void ImfManager_SET_GET_VALUE() - { - ImfManager.EventReceivedEventArgs eventReceivedEventArgs = new ImfManager.EventReceivedEventArgs(); - eventReceivedEventArgs.ImfManager = ImfManager.Get(); - ImfManager manager = eventReceivedEventArgs.ImfManager; - Assert.NotNull(manager, "Should be not null"); - Assert.IsInstanceOf(manager, "Should be an instance of ImfManager"); - } - } -} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ImfCallbackData.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ImfCallbackData.cs deleted file mode 100755 index 3d18416..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ImfCallbackData.cs +++ /dev/null @@ -1,119 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager.ImfCallbackData Tests")] - public class ImfCallbackDataTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("ImfCallbackDataTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a ImfCallbackData object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfCallbackData.ImfCallbackData C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("COVPARAM", "")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void ImfCallbackData_INIT() - { - var imfCallbackData = new ImfManager.ImfCallbackData(); - Assert.NotNull(imfCallbackData, "Should be not null"); - Assert.IsInstanceOf(imfCallbackData, "Should be an instance of ImfManager.ImfCallbackData"); - } - - [Test] - [Category("P1")] - [Description("Create a ImfCallbackData object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfCallbackData.ImfCallbackData C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("COVPARAM", "bool, int, string, bool")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void ImfCallbackData_INIT_WITH_BOOL_INT_STRING_BOOL() - { - var imfCallbackData = new ImfManager.ImfCallbackData(false, 0, "", false); - Assert.NotNull(imfCallbackData, "Should be not null"); - Assert.IsInstanceOf(imfCallbackData, "Should be an instance of ImfManager.ImfCallbackData"); - } - - [Test] - [Category("P1")] - [Description("Test CurrentText.Check whether CurrentText is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfCallbackData.CurrentText A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void CurrentText_SET_GET_VALUE() - { - ImfManager.ImfCallbackData imfCallbackData = new ImfManager.ImfCallbackData(); - imfCallbackData.CurrentText = ""; - Assert.AreEqual("", imfCallbackData.CurrentText, "Should be equal!"); - } - - [Test] - [Category("P1")] - [Description("Test CursorPosition.Check whether CursorPosition is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfCallbackData.CursorPosition A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void CursorPosition_SET_GET_VALUE() - { - ImfManager.ImfCallbackData imfCallbackData = new ImfManager.ImfCallbackData(); - imfCallbackData.CursorPosition = 0; - Assert.AreEqual(0, imfCallbackData.CursorPosition, "Should be equal!"); - } - - [Test] - [Category("P1")] - [Description("Test Update.Check whether Update is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfCallbackData.Update A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void Update_SET_GET_VALUE() - { - ImfManager.ImfCallbackData imfCallbackData = new ImfManager.ImfCallbackData(); - imfCallbackData.Update = false; - Assert.IsFalse(imfCallbackData.Update, "Should be false here!"); - } - - [Test] - [Category("P1")] - [Description("Test PreeditResetRequired.Check whether PreeditResetRequired is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfCallbackData.PreeditResetRequired A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void PreeditResetRequired_SET_GET_VALUE() - { - ImfManager.ImfCallbackData imfCallbackData = new ImfManager.ImfCallbackData(); - imfCallbackData.PreeditResetRequired = false; - Assert.IsFalse(imfCallbackData.PreeditResetRequired, "Should be false here!"); - } - } -} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ImfEventData.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ImfEventData.cs deleted file mode 100755 index 07e5a76..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ImfEventData.cs +++ /dev/null @@ -1,119 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager.ImfEventData Tests")] - public class ImfEventDataTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("ImfEventDataTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a ImfEventData object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfEventData.ImfEventData C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("COVPARAM", "")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void ImfEventData_INIT() - { - var imfEventData = new ImfManager.ImfEventData(); - Assert.NotNull(imfEventData, "Should be not null"); - Assert.IsInstanceOf(imfEventData, "Should be an instance of ImfManager.ImfEventData"); - } - - [Test] - [Category("P1")] - [Description("Create a ImfEventData object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfEventData.ImfEventData C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("COVPARAM", "ImfManager.ImfEvent, string, int, int")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void ImfEventData_INIT_WITH_IMFEVENT_STRING_INT_INT() - { - var imfEventData = new ImfManager.ImfEventData(ImfManager.ImfEvent.DeleteSurrounding, "", 0, 0); - Assert.NotNull(imfEventData, "Should be not null"); - Assert.IsInstanceOf(imfEventData, "Should be an instance of ImfManager.ImfEventData"); - } - - [Test] - [Category("P1")] - [Description("Test CursorOffset.Check whether CursorOffset is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfEventData.CursorOffset A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void CursorOffset_SET_GET_VALUE() - { - ImfManager.ImfEventData imfEventData = new ImfManager.ImfEventData(); - imfEventData.CursorOffset = 0; - Assert.AreEqual(0, imfEventData.CursorOffset, "Should be equal!"); - } - - [Test] - [Category("P1")] - [Description("Test EventName.Check whether EventName is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfEventData.EventName A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void EventName_SET_GET_VALUE() - { - ImfManager.ImfEventData imfEventData = new ImfManager.ImfEventData(); - imfEventData.EventName = ImfManager.ImfEvent.DeleteSurrounding; - Assert.AreEqual(ImfManager.ImfEvent.DeleteSurrounding, imfEventData.EventName, "Should be equal!"); - } - - [Test] - [Category("P1")] - [Description("Test NumberOfChars.Check whether NumberOfChars is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfEventData.NumberOfChars A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void NumberOfChars_SET_GET_VALUE() - { - ImfManager.ImfEventData ImfEventData = new ImfManager.ImfEventData(); - ImfEventData.NumberOfChars = 5; - Assert.AreEqual(5, ImfEventData.NumberOfChars, "Should be equal here!"); - } - - [Test] - [Category("P1")] - [Description("Test PredictiveString.Check whether PredictiveString is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfEventData.PredictiveString A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void PredictiveString_SET_GET_VALUE() - { - ImfManager.ImfEventData ImfEventData = new ImfManager.ImfEventData(); - ImfEventData.PredictiveString = "string"; - Assert.AreEqual("string", ImfEventData.PredictiveString, "Should be equal here!"); - } - } -} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.KeyboardTypeChangedEventArgs.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.KeyboardTypeChangedEventArgs.cs deleted file mode 100755 index 662cc8c..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.KeyboardTypeChangedEventArgs.cs +++ /dev/null @@ -1,61 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager.KeyboardTypeChangedEventArgs Tests")] - public class ImfManagerKeyboardTypeChangedEventArgsTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("KeyboardTypeChangedEventArgsTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a KeyboardTypeChangedEventArgs object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.KeyboardTypeChangedEventArgs.KeyboardTypeChangedEventArgs C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void KeyboardTypeChangedEventArgs_INIT() - { - var keyboardTypeChangedEventArgs = new ImfManager.KeyboardTypeChangedEventArgs(); - Assert.NotNull(keyboardTypeChangedEventArgs, "Should be not null"); - Assert.IsInstanceOf(keyboardTypeChangedEventArgs, "Should be an instance of ImfManager.ImfManagerKeyboardTypeChangedEventArgs"); - } - - [Test] - [Category("P1")] - [Description("Test KeyboardType.Check whether KeyboardType is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.KeyboardTypeChangedEventArgs.KeyboardType A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void KeyboardType_SET_GET_VALUE() - { - ImfManager.KeyboardTypeChangedEventArgs keyboardTypeChangedEventArgs = new ImfManager.KeyboardTypeChangedEventArgs(); - keyboardTypeChangedEventArgs.KeyboardType = ImfManager.KeyboardType.SoftwareKeyboard; - Assert.AreEqual(ImfManager.KeyboardType.SoftwareKeyboard, keyboardTypeChangedEventArgs.KeyboardType, "Should be equal!"); - } - } -} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.LanguageChangedEventArgs.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.LanguageChangedEventArgs.cs deleted file mode 100755 index 9067ad1..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.LanguageChangedEventArgs.cs +++ /dev/null @@ -1,61 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager.LanguageChangedEventArgs Tests")] - public class LanguageChangedEventArgsTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("LanguageChangedEventArgsTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a LanguageChangedEventArgs object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.LanguageChangedEventArgs.LanguageChangedEventArgs C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void LanguageChangedEventArgs_INIT() - { - var languageChangedEventArgs = new ImfManager.LanguageChangedEventArgs(); - Assert.NotNull(languageChangedEventArgs, "Should be not null"); - Assert.IsInstanceOf(languageChangedEventArgs, "Should be an instance of ImfManager.LanguageChangedEventArgs"); - } - - [Test] - [Category("P1")] - [Description("Test LanguageChanged.Check whether LanguageChanged is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.LanguageChangedEventArgs.LanguageChanged A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void LanguageChanged_SET_GET_VALUE() - { - var languageChangedEventArgs = new ImfManager.LanguageChangedEventArgs(); - languageChangedEventArgs.LanguageChanged = 0; - Assert.AreEqual(0, languageChangedEventArgs.LanguageChanged, "Should be equal!"); - } - } -} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ResizedEventArgs.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ResizedEventArgs.cs deleted file mode 100755 index 67c6650..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.ResizedEventArgs.cs +++ /dev/null @@ -1,61 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager.ResizedEventArgs Tests")] - public class ResizedEventArgsTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("ResizedEventArgsTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a eventReceivedEventArgs object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ResizedEventArgs.ResizedEventArgs C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void ResizedEventArgs_INIT() - { - var resizedEventArgs = new ImfManager.ResizedEventArgs(); - Assert.NotNull(resizedEventArgs, "Should be not null"); - Assert.IsInstanceOf(resizedEventArgs, "Should be an instance of ImfManager.ResizedEventArgs"); - } - - [Test] - [Category("P1")] - [Description("Test Resized.Check whether Resized is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ResizedEventArgs.Resized A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void Resized_SET_GET_VALUE() - { - var resizedEventArgs = new ImfManager.ResizedEventArgs(); - resizedEventArgs.Resized = 0; - Assert.AreEqual(0, resizedEventArgs.Resized, "Should be equal!"); - } - } -} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.StatusChangedEventArgs.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.StatusChangedEventArgs.cs deleted file mode 100755 index 8ef0bbe..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.StatusChangedEventArgs.cs +++ /dev/null @@ -1,61 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager.StatusChangedEventArgs Tests")] - public class ImfManagerStatusChangedEventArgsTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("StatusChangedEventArgsTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a StatusChangedEventArgs object. Check whether object is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.StatusChangedEventArgs.StatusChangedEventArgs C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void StatusChangedEventArgs_INIT() - { - var statusChangedEventArgs = new ImfManager.StatusChangedEventArgs(); - Assert.NotNull(statusChangedEventArgs, "Should be not null"); - Assert.IsInstanceOf(statusChangedEventArgs, "Should be an instance of ImfManager.ImfManagerStatusChangedEventArgs"); - } - - [Test] - [Category("P1")] - [Description("Test ImfManager.Check whether StatusChanged is readable and writable.")] - [Property("SPEC", "Tizen.NUI.ImfManager.StatusChangedEventArgs.StatusChanged A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void StatusChanged_SET_GET_VALUE() - { - ImfManager.StatusChangedEventArgs statusChangedEventArgs = new ImfManager.StatusChangedEventArgs(); - statusChangedEventArgs.StatusChanged = false; - Assert.IsFalse(statusChangedEventArgs.StatusChanged, "Should be false"); - } - } -} \ No newline at end of file diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.cs deleted file mode 100755 index 86d2b75..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImfManager.cs +++ /dev/null @@ -1,754 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.UIComponents; -using System.Runtime.InteropServices; -using System.Threading.Tasks; -using Tizen.NUI.BaseComponents; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.ImfManager Tests")] - public class ImfManagerTests - { - private string TAG = "NUI"; - private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "Tizen.NUI.Tests.png"; - private bool _flagOnImfActivedEvent, _flagOnImfEventReceivedEvent, _flagOnLanguageChangedEvent, _flagOnResizedEvent, _flagOnStatusChangedEvent; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, " Init() is called!"); - App.MainTitleChangeText("ImfManagerTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, " Destroy() is called!"); - } - - private void OnImfActivedEvent(object sender, EventArgs e) - { - _flagOnImfActivedEvent = true; - } - - private ImfManager.ImfCallbackData OnImfEventReceivedEvent(object obj, EventArgs e) - { - _flagOnImfEventReceivedEvent = true; - ImfManager.ImfCallbackData callbackData = new ImfManager.ImfCallbackData(true, 0, "", false); - return callbackData; - } - - private void OnLanguageChangedEvent(object obj, EventArgs e) - { - _flagOnLanguageChangedEvent = true; - } - - private void OnResizedEvent(object obj, EventArgs e) - { - _flagOnResizedEvent = true; - } - - private void OnStatusChangedEvent(object obj, EventArgs e) - { - _flagOnStatusChangedEvent = true; - } - - [Test] - [Category("P1")] - [Description("Test constructor. Check whether it works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ImfManager C")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void ImfManager_INIT() - { - var manager = new ImfManager(); - Assert.NotNull(manager, "Should not be null to the ttsplayer.Get"); - Assert.IsInstanceOf(manager, "Should be the instance of ImfManger Type"); - } - - [Test] - [Category("P1")] - [Description("Test Get.Check whether Get works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.Get M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void Get_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - Assert.NotNull(manager, "Should not be null to the ImfManager.Get"); - } - - [Test] - [Category("P1")] - [Description("Test Get.Check whether Instance property return a StyleManager instance successfully.")] - [Property("SPEC", "Tizen.NUI.ImfManager.Instance A")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "PRO")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void Instance_READ_ONLY() - { - ImfManager instance = ImfManager.Instance; - Assert.NotNull(instance, "Should not be null to the ImfManager.Instance"); - } - - [Test] - [Category("P1")] - [Description("Test Activate.Check whether Activate works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.Activate M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void Activate_CHECK_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.Activate(); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test Deactivate.Check whether Deactivate works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.Deactivate M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void Deactivate_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.Deactivate(); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test RestoreAfterFocusLost.Check whether RestoreAfterFocusLost works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.RestoreAfterFocusLost M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void RestoreAfterFocusLost_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.RestoreAfterFocusLost(); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test SetRestoreAfterFocusLost.Check whether SetRestoreAfterFocusLost works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.SetRestoreAfterFocusLost M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void SetRestoreAfterFocusLost_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.SetRestoreAfterFocusLost(true); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test Reset.Check whether Reset works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.Reset M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void Reset_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.Reset(); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test NotifyCursorPosition.Check whether NotifyCursorPosition works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.NotifyCursorPosition M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void NotifyCursorPosition_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.NotifyCursorPosition(); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test SetCursorPosition.Check whether SetCursorPosition works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.SetCursorPosition M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void SetCursorPosition_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.SetCursorPosition(100); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test GetCursorPosition.Check whether GetCursorPosition works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.GetCursorPosition M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void GetCursorPosition_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - manager.SetCursorPosition(100); - uint pos = manager.GetCursorPosition(); - Assert.AreEqual(100, pos, "Should be equal to GetCursorPosition"); - } - - [Test] - [Category("P1")] - [Description("Test SetSurroundingText.Check whether SetSurroundingText works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.SetSurroundingText M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void SetSurroundingText_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.SetSurroundingText("Test"); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test GetSurroundingText.Check whether GetSurroundingText works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.GetSurroundingText M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void GetSurroundingText_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - manager.SetSurroundingText("Test"); - string text = manager.GetSurroundingText(); - Assert.AreEqual("Test", text, "Should be equal to GetCursorPosition"); - } - - [Test] - [Category("P1")] - [Description("Test NotifyTextInputMultiLine.Check whether NotifyTextInputMultiLine works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.NotifyTextInputMultiLine M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void NotifyTextInputMultiLine_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.NotifyTextInputMultiLine(true); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test GetTextDirection.Check whether GetTextDirection works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.GetTextDirection M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void GetTextDirection_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - if (manager) - { - Assert.AreEqual(ImfManager.TextDirection.LeftToRight, manager.GetTextDirection(), "Should be equal"); - } - } - - [Test] - [Category("P1")] - [Description("Test GetInputPanelLocale.Check whether GetInputPanelLocale works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.GetInputPanelLocale M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public async Task GetInputPanelLocale_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - - await Task.Delay(200); - Tizen.Log.Fatal("NUI", "GetInputPanelLocale_RETURN_VALUE() Add 200ms delay"); - - if (manager) - { - Assert.AreEqual("", manager.GetInputPanelLocale(), "Should be null"); - } - } - - [Test] - [Category("P1")] - [Description("Test GetKeyboardType.Check whether GetKeyboardType works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.GetKeyboardType M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void GetKeyboardType_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - if (manager) - { - Assert.AreEqual(ImfManager.KeyboardType.SoftwareKeyboard, manager.GetKeyboardType(), "Should be not null"); - } - } - - [Test] - [Category("P1")] - [Description("Test GetInputMethodArea.Check whether GetInputMethodArea works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.GetInputMethodArea M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public async Task GetInputMethodArea_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - - manager.Deactivate(); - manager.HideInputPanel(); - await Task.Delay(200); - manager.Activate(); - manager.ShowInputPanel(); - - Tizen.Log.Debug("NUI", "GetInputMethodArea_RETURN_VALUE Add 200ms delay!"); - - if (manager) - { - Rectangle rect = manager.GetInputMethodArea(); - Assert.GreaterOrEqual(rect.X, 0, "Should be greater than 0!"); - Assert.GreaterOrEqual(rect.Y, 0, "Should be greater than 0!"); - } - } - - [Test] - [Category("P1")] - [Description("Test SetReturnKeyState.Check whether SetReturnKeyState works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.SetReturnKeyState M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void SetReturnKeyState_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.SetReturnKeyState(true); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test AutoEnableInputPanel.Check whether AutoEnableInputPanel works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.AutoEnableInputPanel M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void AutoEnableInputPanel_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.AutoEnableInputPanel(true); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test ShowInputPanel.Check whether ShowInputPanel works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.ShowInputPanel M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void ShowInputPanel_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.ShowInputPanel(); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test HideInputPanel.Check whether HideInputPanel works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.HideInputPanel M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void HideInputPanel_NO_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - try - { - manager.HideInputPanel(); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test GetInputPanelState.Check whether GetInputPanelState works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.GetInputPanelState M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@partner.samsung.com")] - public async Task GetInputPanelState_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - Assert.IsNotNull(manager, "ImfManager should not be null"); - if (manager.RestoreAfterFocusLost()) - manager.SetRestoreAfterFocusLost(false); - - manager.HideInputPanel(); - - await Task.Delay(300); - - Assert.AreEqual(ImfManager.State.Hide, manager.GetInputPanelState(), "Should be equal"); - } - - [Test] - [Category("P1")] - [Description("Test SetInputPanelUserData.Check whether SetInputPanelUserData works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.SetInputPanelUserData M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@partner.samsung.com")] - public void SetInputPanelUserData_TEST() - { - try - { - ImfManager manager = ImfManager.Get(); - manager.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()); - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test GetInputPanelUserData.Check whether GetInputPanelUserData works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.GetInputPanelUserData M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@partner.samsung.com")] - public void GetInputPanelUserData_TEST() - { - try - { - ImfManager manager = ImfManager.Get(); - manager.SetInputPanelUserData("layouttype = 1 & entrylimit = 255 & action = clearall_for_voice_commit & caller = org.volt.search - all"); - string data = ""; - manager.GetInputPanelUserData(out data); - } - catch (Exception e) - { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Test Get.Check whether DestroyContext works or not.")] - [Property("SPEC", "Tizen.NUI.ImfManager.DestroyContext M")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Fang Xiaohui, xiaohui.fang@samsung.com")] - public void DestroyContext_RETURN_VALUE() - { - ImfManager manager = ImfManager.Get(); - Assert.IsNotNull(manager, "The object should not be null!"); - try - { - manager.DestroyContext(); - } - catch (Exception e) - { - Assert.Fail("Caught Exception" + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Check whether Activated event is triggered.")] - [Property("SPEC", "Tizen.NUI.ImfManager.Activated E")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")] - public async Task Activated_CHECK_EVENT() - { - /* TEST CODE */ - var manager = ImfManager.Get(); - Assert.IsInstanceOf(manager, "Should be an instance of ImfManager type."); - try - { - _flagOnImfActivedEvent = false; - Assert.False(_flagOnImfActivedEvent, "_flagOnImfActivedEvent should false initial"); - manager.Activated += OnImfActivedEvent; - manager.Activate(); - await Task.Delay(20); - Assert.True(_flagOnImfActivedEvent, "Should be true after triger Activated event."); - } - catch (Exception e) - { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); - Assert.Fail("Caught Exception" + e.ToString()); - } - finally - { - manager.Activated -= OnImfActivedEvent; - } - } - - [Test] - [Category("P1")] - [Description("Check whether EventReceived event is triggered.")] - [Property("SPEC", "Tizen.NUI.ImfManager.EventReceived E")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")] - public async Task EventReceived_CHECK_EVENT() - { - /* TEST CODE */ - var manager = ImfManager.Get(); - Assert.IsInstanceOf(manager, "Should be an instance of ImfManager type."); - try - { - _flagOnImfEventReceivedEvent = false; - Assert.False(_flagOnImfEventReceivedEvent, "_flagOnImfEventReceivedEvent should false initial"); - manager.EventReceived += OnImfEventReceivedEvent; - manager.Deactivate(); - manager.HideInputPanel(); - await Task.Delay(20); - manager.Activate(); - manager.ShowInputPanel(); - await Task.Delay(20); - Assert.True(_flagOnImfEventReceivedEvent, "Should be true after triger EventReceived event."); - } - catch (Exception e) - { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); - Assert.Fail("Caught Exception" + e.ToString()); - } - finally - { - manager.EventReceived -= OnImfEventReceivedEvent; - } - } - - [Test] - [Category("P1")] - [Description("Check whether LanguageChanged event is triggered.")] - [Property("SPEC", "Tizen.NUI.ImfManager.LanguageChanged E")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")] - public async Task LanguageChanged_CHECK_EVENT() - { - /* TEST CODE */ - var manager = ImfManager.Get(); - Assert.IsInstanceOf(manager, "Should be an instance of ImfManager type."); - - if (manager.GetInputPanelLocale() != null) - { - if (manager.GetInputPanelLocale() == "") - { - Assert.Pass("InputPanelLocale of ImfManager is not set in this profile"); - } - else - { - try - { - _flagOnLanguageChangedEvent = false; - Assert.False(_flagOnLanguageChangedEvent, "_flagOnLanguageChangedEvent should false initial"); - manager.LanguageChanged += OnLanguageChangedEvent; - manager.Deactivate(); - manager.HideInputPanel(); - await Task.Delay(500); - manager.Activate(); - manager.ShowInputPanel(); - await Task.Delay(500); - Tizen.Log.Fatal("NUI", "LanguageChanged_CHECK_EVENT()!!!"); - Assert.True(_flagOnLanguageChangedEvent, "Should be true after triger LanguageChanged event."); - - } - catch (Exception e) - { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); - Assert.Fail("Caught Exception" + e.ToString()); - } - finally - { - manager.LanguageChanged -= OnLanguageChangedEvent; - } - } - } - } - - [Test] - [Category("P1")] - [Description("Check whether Resized event is triggered.")] - [Property("SPEC", "Tizen.NUI.ImfManager.Resized E")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")] - public async Task Resized_CHECK_EVENT() - { - /* TEST CODE */ - var manager = ImfManager.Get(); - Assert.IsInstanceOf(manager, "Should be an instance of ImfManager type."); - try - { - _flagOnResizedEvent = false; - Assert.False(_flagOnResizedEvent, "_flagOnResizedEvent should false initial"); - manager.Resized += OnResizedEvent; - manager.Activate(); - manager.ShowInputPanel(); - await Task.Delay(300); - manager.Deactivate(); - manager.HideInputPanel(); - await Task.Delay(300); - - Assert.True(_flagOnResizedEvent, "Should be true after triger Resized event."); - } - catch (Exception e) - { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); - Assert.Fail("Caught Exception" + e.ToString()); - } - finally - { - manager.Resized -= OnResizedEvent; - } - } - - [Test] - [Category("P1")] - [Description("Check whether Resized event is triggered.")] - [Property("SPEC", "Tizen.NUI.ImfManager.StatusChanged E")] - [Property("SPEC_URL", " - ")] - [Property("CRITERIA", "EVL")] - [Property("AUTHOR", "Xianbing teng, xb.teng@samsung.com")] - public async Task StatusChanged_CHECK_EVENT() - { - /* TEST CODE */ - var manager = ImfManager.Get(); - Assert.IsInstanceOf(manager, "Should be an instance of ImfManager type."); - try - { - _flagOnStatusChangedEvent = false; - Assert.False(_flagOnStatusChangedEvent, "_flagOnStatusChangedEvent should false initial"); - manager.StatusChanged += OnStatusChangedEvent; - manager.Activate(); - manager.ShowInputPanel(); - await Task.Delay(70); - manager.Deactivate(); - manager.HideInputPanel(); - await Task.Delay(70); - Assert.True(_flagOnStatusChangedEvent, "Should be true after triger StatusChanged event."); - } - catch (Exception e) - { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); - Assert.Fail("Caught Exception" + e.ToString()); - } - finally - { - manager.StatusChanged -= OnStatusChangedEvent; - } - } - } -} -- 2.7.4