From 1a592d84f3861c7aa5c3cb37c907b0cd516b2182 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Wed, 8 Jun 2022 15:52:08 +0900 Subject: [PATCH] [NUI][Non-ACR] Add BorderlineWidth / Color / Offset testcase Sync with tizen_6.5 (see TCSACR-458) Change-Id: I5e2e3f05e89a324fa1414371d0408f6271ab8a28 Signed-off-by: Eunki, Hong --- tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs | 49 ++++++++++++++++++++++ .../Tizen.NUI.Tests/testcase/TSViewStyle.cs | 47 +++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs index d50af64..2e24a4a 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs @@ -2668,6 +2668,55 @@ namespace Tizen.NUI.Tests [Test] [Category("P1")] + [Description("Test BorderlineWidth. Check whether BorderlineWidth is readable and writable.")] + [Property("SPEC", "Tizen.NUI.BaseComponents.View.BorderlineWidth A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Eunki Hong, eunkiki.hong@samsung.com")] + public void BorderlineWidth_SET_GET_VALUE() + { + /* TEST CODE */ + View view = new View(); + var testValue = 1.1f; + view.BorderlineWidth = testValue; + Assert.AreEqual(testValue, view.BorderlineWidth, "Should be equal to the set value"); + } + + [Test] + [Category("P1")] + [Description("Test BorderlineColor. Check whether BorderlineColor is readable and writable.")] + [Property("SPEC", "Tizen.NUI.BaseComponents.View.BorderlineColor A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Eunki Hong, eunkiki.hong@samsung.com")] + public void BorderlineColor_SET_GET_VALUE() + { + /* TEST CODE */ + View view = new View(); + var testValue = new Color(0.1f, 0.2f, 0.3f, 0.5f); + view.BorderlineColor = testValue; + Assert.IsNotNull(view.BorderlineColor, "BorderlineColor should be not null."); + Assert.IsTrue(testValue.Equals(view.BorderlineColor), "Should be equal to the set value"); + } + + [Test] + [Category("P1")] + [Description("Test BorderlineOffset. Check whether BorderlineOffset is readable and writable.")] + [Property("SPEC", "Tizen.NUI.BaseComponents.View.BorderlineOffset A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Eunki Hong, eunkiki.hong@samsung.com")] + public void BorderlineOffset_SET_GET_VALUE() + { + /* TEST CODE */ + View view = new View(); + var testValue = -0.7f; + view.BorderlineOffset = testValue; + Assert.AreEqual(testValue, view.BorderlineOffset, "Should be equal to the set value"); + } + + [Test] + [Category("P1")] [Description("Test TransitionOptions. Check whether TransitionOptions is readable and writable.")] [Property("SPEC", "Tizen.NUI.BaseComponents.View.TransitionOptions A")] [Property("SPEC_URL", "-")] diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSViewStyle.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSViewStyle.cs index b16e806..7d07103 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSViewStyle.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSViewStyle.cs @@ -389,6 +389,53 @@ namespace Tizen.NUI.Tests Assert.AreEqual(testValue, style.CornerRadiusPolicy, "Should be equal to the set value."); } + [Test] + [Category("P1")] + [Description("Test BorderlineWidth. Check whether BorderlineWidth is readable and writable.")] + [Property("SPEC", "Tizen.NUI.BaseComponents.ViewStyle.BorderlineWidth A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Eunki Hong, eunkiki.hong@samsung.com")] + public void BorderlineWidth_SET_GET_VALUE() + { + /* TEST CODE */ + float? testValue = 10.0f; + style.BorderlineWidth = testValue; + Assert.IsNotNull(style.BorderlineWidth, "Should be not null"); + Assert.AreEqual(testValue, style.BorderlineWidth, "Should be equal to the set value."); + } + + [Test] + [Category("P1")] + [Description("Test BorderlineColor. Check whether BorderlineColor is readable and writable.")] + [Property("SPEC", "Tizen.NUI.BaseComponents.ViewStyle.BorderlineColor A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Eunki Hong, eunkiki.hong@samsung.com")] + public void BorderlineColor_SET_GET_VALUE() + { + /* TEST CODE */ + var testValue = new Color(0.2f, 0.3f, 0.4f, 0.5f); + style.BorderlineColor = testValue; + Assert.IsNotNull(style.BorderlineColor, "Should be not null"); + Assert.IsTrue(testValue.Equals(style.BorderlineColor), "Should be equal to the set value."); + } + + [Test] + [Category("P1")] + [Description("Test BorderlineOffset. Check whether BorderlineOffset is readable and writable.")] + [Property("SPEC", "Tizen.NUI.BaseComponents.ViewStyle.BorderlineOffset A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Eunki Hong, eunkiki.hong@samsung.com")] + public void BorderlineOffset_SET_GET_VALUE() + { + /* TEST CODE */ + float? testValue = 0.7f; + style.BorderlineOffset = testValue; + Assert.IsNotNull(style.BorderlineOffset, "Should be not null"); + Assert.AreEqual(testValue, style.BorderlineOffset, "Should be equal to the set value."); + } [Test] [Category("P1")] -- 2.7.4