From: Inhong Han Date: Mon, 10 Dec 2018 10:06:41 +0000 (+0900) Subject: [Inputmethod][TCSACR-195] Add new APIs to update input panel event X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F195248%2F3;p=test%2Ftct%2Fcsharp%2Fapi.git [Inputmethod][TCSACR-195] Add new APIs to update input panel event Change-Id: I5c6b29ebfc7afa567ac9091e20d6fc838dc0f023 --- diff --git a/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs b/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs index d5370eb4c..36cfdfc45 100755 --- a/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs +++ b/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs @@ -955,6 +955,91 @@ namespace Tizen.Uix.InputMethod.Tests Assert.IsTrue(flag, "Failed test"); } + [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")]