From 469a648eec07ee79dcc1f6f9edac85aed90e0138 Mon Sep 17 00:00:00 2001 From: Inhong Han Date: Mon, 10 Dec 2018 19:06:41 +0900 Subject: [PATCH] [Inputmethod][TCSACR-195] Add new APIs to update input panel event Change-Id: I5c6b29ebfc7afa567ac9091e20d6fc838dc0f023 --- .../testcase/TSInputMethodEditor.cs | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs b/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs index d5370eb..36cfdfc 100755 --- a/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs +++ b/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs @@ -957,6 +957,91 @@ namespace Tizen.Uix.InputMethod.Tests [Test] [Category("P1")] + [Description("Check the working of SendLanguageUpdated method for No Exception")] + [Property("SPEC", "Tizen.Uix.InputMethod.InputMethodEditor.SendLanguageUpdated M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")] + public void SendLanguageUpdated_NO_EXCEPTION() + { + /* + * TEST CODE + */ + flag = false; + try + { + Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: SendLanguageUpdated_NO_EXCEPTION"); + InputMethodEditor.SendLanguageUpdated(); + flag = true; + Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: SendLanguageUpdated_NO_EXCEPTION"); + } + catch (Exception e) + { + Helper.PrintLog(Type.DLogAndlogUtil, "Caught Exception" + e.ToString()); + Assert.IsTrue(false, "Caught Exception" + e.ToString()); + } + Assert.IsTrue(flag, "Failed test"); + } + + [Test] + [Category("P1")] + [Description("Check the working of SendShiftModeUpdated method for No Exception")] + [Property("SPEC", "Tizen.Uix.InputMethod.InputMethodEditor.SendShiftModeUpdated M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")] + public void SendShiftModeUpdated_NO_EXCEPTION() + { + /* + * TEST CODE + */ + flag = false; + try + { + Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: SendShiftModeUpdated_NO_EXCEPTION"); + InputMethodEditor.SendShiftModeUpdated(true); + InputMethodEditor.SendShiftModeUpdated(false); + flag = true; + Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: SendShiftModeUpdated_NO_EXCEPTION"); + } + catch (Exception e) + { + Helper.PrintLog(Type.DLogAndlogUtil, "Caught Exception" + e.ToString()); + Assert.IsTrue(false, "Caught Exception" + e.ToString()); + } + Assert.IsTrue(flag, "Failed test"); + } + + [Test] + [Category("P1")] + [Description("Check the working of SendCustomGeometryUpdated method for No Exception")] + [Property("SPEC", "Tizen.Uix.InputMethod.InputMethodEditor.SendCustomGeometryUpdated M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")] + public void SendCustomGeometryUpdated_NO_EXCEPTION() + { + /* + * TEST CODE + */ + flag = false; + try + { + Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: SendCustomGeometryUpdated_NO_EXCEPTION"); + InputMethodEditor.SendCustomGeometryUpdated(); + flag = true; + Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: SendCustomGeometryUpdated_NO_EXCEPTION"); + } + catch (Exception e) + { + Helper.PrintLog(Type.DLogAndlogUtil, "Caught Exception" + e.ToString()); + Assert.IsTrue(false, "Caught Exception" + e.ToString()); + } + Assert.IsTrue(flag, "Failed test"); + } + + [Test] + [Category("P1")] [Description("Initialize the BoolAction delegate")] [Property("SPEC", " Tizen.Uix.InputMethod.InputMethodEditor.BoolAction M")] [Property("SPEC_URL", "-")] -- 2.7.4