[Inputmethod][TCSACR-195] Add new APIs to update input panel event 48/195248/3
authorInhong Han <inhong1.han@samsung.com>
Mon, 10 Dec 2018 10:06:41 +0000 (19:06 +0900)
committerInhong Han <inhong1.han@samsung.com>
Thu, 3 Jan 2019 01:18:44 +0000 (10:18 +0900)
Change-Id: I5c6b29ebfc7afa567ac9091e20d6fc838dc0f023

tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs

index d5370eb..36cfdfc 100755 (executable)
@@ -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", "-")]