[NUI][Non-ACR][Update TCTs for Tizen.NUI] 46/199846/3
authorxb.teng <xb.teng@samsung.com>
Fri, 15 Feb 2019 03:19:31 +0000 (11:19 +0800)
committerxb.teng <xb.teng@samsung.com>
Fri, 15 Feb 2019 09:00:39 +0000 (17:00 +0800)
Change-Id: I14b80f08221cde5481fa4e764d0bd2ec26d4d616

tct-suite-vs/Tizen.NUI.Tests/testcase/TSBaseHandle.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSCustomView.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSPaddingType.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextEditor.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextField.cs
tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextLabel.cs

index 2e01612..7855f4f 100755 (executable)
@@ -270,9 +270,10 @@ namespace Tizen.NUI.Tests
         [Test]
         [Category("P1")]
         [Description("dali baseHandle Equality test, Check whether Equality works or not.")]
-        [Property("SPEC", "Tizen.NUI.BaseHandle.Equality M")]
+        [Property("SPEC", "Tizen.NUI.BaseHandle.== M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "BaseHandle,BaseHandle")]
         [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
         public void Equality_CHECK_RETURN_TYPE()
         {
@@ -291,9 +292,10 @@ namespace Tizen.NUI.Tests
         [Test]
         [Category("P1")]
         [Description("dali baseHandle Inequality test, Check whether the Inequality will return the right value or not.")]
-        [Property("SPEC", "Tizen.NUI.BaseHandle.Inequality M")]
+        [Property("SPEC", "Tizen.NUI.BaseHandle.!= M")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "BaseHandle,BaseHandle")]
         [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
         public void Inequality_CHECK_RETURN_TYPE()
         {
index aafbfb2..97af55b 100755 (executable)
@@ -298,7 +298,6 @@ namespace Tizen.NUI.Tests
                 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
                 Assert.Fail("Caught Exception" + e.ToString());
             }
-
         }
 
         [Test]
index 46e3e1f..e14a4f5 100755 (executable)
@@ -123,9 +123,10 @@ namespace Tizen.NUI.Tests
         [Test]
         [Category("P1")]
         [Description("Test Equality, Check Equality operator by comparing two PaddingType instance.")]
-        [Property("SPEC", "Tizen.NUI.PaddingType.Equality A")]
+        [Property("SPEC", "Tizen.NUI.PaddingType.== A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
+        [Property("COVPARAM", "PaddingType, PaddingType")]
         [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
         public void Equality_CHECK_VALUE()
         {
@@ -143,9 +144,10 @@ namespace Tizen.NUI.Tests
         [Test]
         [Category("P1")]
         [Description("Test Inequality, Check Inequality operator by comparing two PaddingType instance.")]
-        [Property("SPEC", "Tizen.NUI.PaddingType.Inequality A")]
+        [Property("SPEC", "Tizen.NUI.PaddingType.!= A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
+        [Property("COVPARAM", "PaddingType, PaddingType")]
         [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
         public void Inequality_CHECK_VALUE()
         {
index 358b47e..dbb5ee9 100755 (executable)
@@ -1032,7 +1032,7 @@ namespace Tizen.NUI.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Test LineWrapMode.Check whether TextChanged ia readable and writable.")]
+        [Description("Test LineWrapMode.Check whether TextChanged is readable and writable.")]
         [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.LineWrapMode A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
@@ -1046,7 +1046,7 @@ namespace Tizen.NUI.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Test TranslatablePlaceholderText.Check whether TranslatablePlaceholderText ia readable and writable.")]
+        [Description("Test TranslatablePlaceholderText.Check whether TranslatablePlaceholderText is readable and writable.")]
         [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.TranslatablePlaceholderText A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
@@ -1064,7 +1064,7 @@ namespace Tizen.NUI.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Test TranslatableText.Check whether TranslatableText ia readable and writable.")]
+        [Description("Test TranslatableText.Check whether TranslatableText is readable and writable.")]
         [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.TranslatableText A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
@@ -1138,5 +1138,27 @@ namespace Tizen.NUI.Tests
                 Window.Instance.Remove(textEditor);\r
             }
         }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test MatchSystemLanguageDirectionProperty. Check whether MatchSystemLanguageDirectionProperty(BindableProperty) is working correctly or not.")]
+        [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.MatchSystemLanguageDirectionProperty A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRO")]
+        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
+        public void MatchSystemLanguageDirectionProperty_CHECK_VALUE()
+        {
+            var textEditor = new TextEditor();\r
+            Assert.IsNotNull(textEditor, "Can't create success object TextEditor");\r
+            Assert.IsInstanceOf<TextEditor>(textEditor, "Should be an instance of TextEditor type.");\r
+\r
+            textEditor.SetValue(TextEditor.MatchSystemLanguageDirectionProperty, false);\r
+            bool ret = (bool)textEditor.GetValue(TextEditor.MatchSystemLanguageDirectionProperty);\r
+            Assert.AreEqual(false, ret, "should be same");\r
+\r
+            textEditor.SetValue(TextEditor.MatchSystemLanguageDirectionProperty, true);\r
+            ret = (bool)textEditor.GetValue(TextEditor.MatchSystemLanguageDirectionProperty);\r
+            Assert.AreEqual(true, ret, "should be same");
+        }
     }
 }
index 0ca61af..5fd8ef6 100755 (executable)
@@ -307,7 +307,7 @@ namespace Tizen.NUI.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Test TranslatablePlaceholderText.Check whether TranslatablePlaceholderText ia readable and writable.")]
+        [Description("Test TranslatablePlaceholderText.Check whether TranslatablePlaceholderText is readable and writable.")]
         [Property("SPEC", "Tizen.NUI.BaseComponents.TextField.TranslatablePlaceholderText A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
@@ -325,7 +325,7 @@ namespace Tizen.NUI.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Test TranslatableText.Check whether TranslatableText ia readable and writable.")]
+        [Description("Test TranslatableText.Check whether TranslatableText is readable and writable.")]
         [Property("SPEC", "Tizen.NUI.BaseComponents.TextField.TranslatableText A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
@@ -1180,5 +1180,27 @@ namespace Tizen.NUI.Tests
                 Assert.Fail("Caught Exception" + e.ToString());
             }
         }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test MatchSystemLanguageDirectionProperty. Check whether MatchSystemLanguageDirectionProperty(BindableProperty) is working correctly or not.")]
+        [Property("SPEC", "Tizen.NUI.BaseComponents.TextField.MatchSystemLanguageDirectionProperty A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRO")]
+        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
+        public void MatchSystemLanguageDirectionProperty_CHECK_VALUE()
+        {
+            var textField = new TextField();\r
+            Assert.IsNotNull(textField, "Can't create success object TextField");\r
+            Assert.IsInstanceOf<TextField>(textField, "Should be an instance of TextField type.");\r
+\r
+            textField.SetValue(TextField.MatchSystemLanguageDirectionProperty, false);\r
+            bool ret = (bool)textField.GetValue(TextField.MatchSystemLanguageDirectionProperty);\r
+            Assert.AreEqual(false, ret, "should be same");
+
+            textField.SetValue(TextField.MatchSystemLanguageDirectionProperty, true);\r
+            ret = (bool)textField.GetValue(TextField.MatchSystemLanguageDirectionProperty);\r
+            Assert.AreEqual(true, ret, "should be same");
+        }
     }
 }
index 876f903..8a6371c 100755 (executable)
@@ -612,7 +612,7 @@ namespace Tizen.NUI.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Test LineWrapMode.Check whether TextChanged ia readable and writable.")]
+        [Description("Test LineWrapMode.Check whether TextChanged is readable and writable.")]
         [Property("SPEC", "Tizen.NUI.BaseComponents.TextLabel.LineWrapMode A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
@@ -640,7 +640,7 @@ namespace Tizen.NUI.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Test TranslatableText.Check whether TranslatableText ia readable and writable.")]
+        [Description("Test TranslatableText.Check whether TranslatableText is readable and writable.")]
         [Property("SPEC", "Tizen.NUI.BaseComponents.TextLabel.TranslatableText A")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRW")]
@@ -699,6 +699,27 @@ namespace Tizen.NUI.Tests
             }
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("Test MatchSystemLanguageDirectionProperty. Check whether MatchSystemLanguageDirectionProperty(BindableProperty) is working correctly or not.")]
+        [Property("SPEC", "Tizen.NUI.BaseComponents.TextLabel.MatchSystemLanguageDirectionProperty A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRO")]
+        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
+        public void MatchSystemLanguageDirectionProperty_CHECK_VALUE()
+        {
+            var textLabel = new TextLabel();\r
+            Assert.IsNotNull(textLabel, "Can't create success object textLabel");\r
+            Assert.IsInstanceOf<TextLabel>(textLabel, "Should be an instance of textLabel type.");\r
+\r
+            textLabel.SetValue(TextLabel.MatchSystemLanguageDirectionProperty, false);\r
+            bool ret = (bool)textLabel.GetValue(TextLabel.MatchSystemLanguageDirectionProperty);\r
+            Assert.AreEqual(false, ret, "should be same");
+
+            textLabel.SetValue(TextLabel.MatchSystemLanguageDirectionProperty, true);\r
+            ret = (bool)textLabel.GetValue(TextLabel.MatchSystemLanguageDirectionProperty);\r
+            Assert.AreEqual(true, ret, "should be same");
+        }
     }
 
     public class MyTexLabel : TextLabel