From c09d827a9021bcd8609ca881cd85844e64fd029f Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Wed, 23 Sep 2020 17:17:36 +0900 Subject: [PATCH] [NUI][TCSACR-324][Remove Tizen.NUI.BaseComponents.FlexContainer testcases] - FlexContainer class is deprecated in TCSACR-324. : FlexContainer() FlexContainer.Alignment AlignContent { get; set; } FlexContainer.Alignment AlignItems { get; set; } FlexContainer.ContentDirectionType ContentDirection { get; set; } FlexContainer.FlexDirectionType FlexDirection { get; set; } FlexContainer.Justification JustifyContent { get; set; } FlexContainer.WrapType FlexWrap { get; set; } FlexContainer.Alignment AlignAuto = 0 AlignFlexStart = 1 AlignCenter = 2 AlignFlexEnd = 3 AlignStretch = 4 FlexContainer.ContentDirectionType Inherit = 0 LTR = 1 RTL = 2 FlexContainer.FlexDirectionType Column = 0 ColumnReverse = 1 Row = 2 RowReverse = 3 FlexContainer.Justification JustifyFlexStart = 0 JustifyCenter = 1 JustifyFlexEnd = 2 JustifySpaceBetween = 3 JustifySpaceAround = 4 FlexContainer.WrapType NoWrap = 0 Wrap = 1 float Flex { get; set; } int AlignSelf { get; set; } Tizen.NUI.Vector4 FlexMargin { get; set; } Change-Id: I10e1a363997e6bc35a38a1f92d2704026ed023ce Signed-off-by: Seoyeon Kim --- .../testcase/TSFlexContainer.ChildProperty.cs | 45 ----- .../Tizen.NUI.Tests/testcase/TSFlexContainer.cs | 206 --------------------- tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs | 55 ------ 3 files changed, 306 deletions(-) delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexContainer.ChildProperty.cs delete mode 100755 tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexContainer.cs diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexContainer.ChildProperty.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexContainer.ChildProperty.cs deleted file mode 100755 index 22ab536..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexContainer.ChildProperty.cs +++ /dev/null @@ -1,45 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.BaseComponents; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.BaseComponents.FlexContainer.ChildProperty Tests")] - public class FlexContainerChildPropertyTests - { - private string TAG = "NUI"; - - [SetUp] - public void Init() - { - Tizen.Log.Info(TAG, "Init() is called!"); - App.MainTitleChangeText("FlexContainerChildPropertyTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - Tizen.Log.Info(TAG, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("Create a ChildProperty object. Check whether ChildProperty is successfully created or not.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.ChildProperty.ChildProperty C")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void ChildProperty_INIT() - { - /* TEST CODE */ - var childProperty = new FlexContainer.ChildProperty(); - Assert.IsNotNull(childProperty, "Can't create success object ChildProperty"); - Assert.IsInstanceOf(childProperty, "Should be an instance of ChildProperty type."); - } - } -} diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexContainer.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexContainer.cs deleted file mode 100755 index 3a3da15..0000000 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFlexContainer.cs +++ /dev/null @@ -1,206 +0,0 @@ -using NUnit.Framework; -using NUnit.Framework.TUnit; -using System; -using Tizen.NUI; -using Tizen.NUI.BaseComponents; -using Tizen.NUI.Test; - -namespace Tizen.NUI.Tests -{ - [TestFixture] - [Description("Tizen.NUI.BaseComponents.FlexContainer Tests")] - - public class FlexContainerTests - { - private string TAG = "NUI"; - - [SetUp] - public void Init() - { - App.MainTitleChangeText("FlexContainerTests"); - App.MainTitleChangeBackgroundColor(null); - } - - [TearDown] - public void Destroy() - { - - } - - [Test] - [Category("P1")] - [Description("Test Construt. Check Flex Container Construct.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.FlexContainer C")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "CONSTR")] - [Property("AUTHOR", "Xuemei Chen, xnicole.chen@samsung.com")] - - public void FlexContainer_INIT() - { - var tempContainer = new FlexContainer(); - Assert.IsInstanceOf(tempContainer, "Construct Flex Container Fail."); - } - - [Test] - [Category("P1")] - [Description("Test ContentDirection. Check content direction.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.FlexDirection A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW PRE")] - [Property("AUTHOR", "Xuemei Chen, xnicole.chen@samsung.com")] - - public void FlexDirection_SET_GET_VALUE() - { - FlexContainer container = new FlexContainer(); - Window.Instance.GetDefaultLayer().Add(container); - - container.FlexDirection = FlexContainer.FlexDirectionType.Column; - Assert.AreEqual(container.FlexDirection, FlexContainer.FlexDirectionType.Column, "Check FlexDirectionType.Column Fail"); - - container.FlexDirection = FlexContainer.FlexDirectionType.ColumnReverse; - Assert.AreEqual(container.FlexDirection, FlexContainer.FlexDirectionType.ColumnReverse, "Check FlexDirectionType.ColumnReverse Fail"); - - container.FlexDirection = FlexContainer.FlexDirectionType.Row; - Assert.AreEqual(container.FlexDirection, FlexContainer.FlexDirectionType.Row, "Check FlexDirectionType.Row Fail"); - - container.FlexDirection = FlexContainer.FlexDirectionType.RowReverse; - Assert.AreEqual(container.FlexDirection, FlexContainer.FlexDirectionType.RowReverse, "Check FlexDirectionType.RowReverse Fail"); - - Window.Instance.GetDefaultLayer().Remove(container); - } - - [Test] - [Category("P1")] - [Description("Test ContentDirection. Check content direction.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.ContentDirection A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW PRE")] - [Property("AUTHOR", "Xuemei Chen, xnicole.chen@samsung.com")] - public void ContentDirection_SET_GET_VALUE() - { - FlexContainer container = new FlexContainer(); - Window.Instance.GetDefaultLayer().Add(container); - - container.ContentDirection = FlexContainer.ContentDirectionType.Inherit; - Assert.AreEqual(container.ContentDirection, FlexContainer.ContentDirectionType.Inherit, "Check Content Direction Inherit Fail"); - - container.ContentDirection = FlexContainer.ContentDirectionType.LTR; - Assert.AreEqual(container.ContentDirection, FlexContainer.ContentDirectionType.LTR, "Check Content Direction LTR Fail"); - - container.ContentDirection = FlexContainer.ContentDirectionType.RTL; - Assert.AreEqual(container.ContentDirection, FlexContainer.ContentDirectionType.RTL, "Check Content Direction RTL Fail"); - - Window.Instance.GetDefaultLayer().Remove(container); - } - - [Test] - [Category("P1")] - [Description("Test FlexWrap. Check Flex Wrap of Child.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.FlexWrap A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW PRE")] - [Property("AUTHOR", "Xuemei Chen, xnicole.chen@samsung.com")] - public void FlexWrap_SET_GET_VALUE() - { - FlexContainer container = new FlexContainer(); - Window.Instance.GetDefaultLayer().Add(container); - - container.FlexWrap = FlexContainer.WrapType.NoWrap; - Assert.AreEqual(container.FlexWrap, FlexContainer.WrapType.NoWrap, "Check Wrap Fail"); - } - - [Test] - [Category("P1")] - [Description("Test JustifyContent. Check Justfy Content.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.JustifyContent A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW PRE")] - [Property("AUTHOR", "Xuemei Chen, xnicole.chen@samsung.com")] - public void JustifyContent_SET_GET_VALUE() - { - FlexContainer container = new FlexContainer(); - Window stage = Window.Instance; - Window.Instance.GetDefaultLayer().Add(container); - - container.JustifyContent = FlexContainer.Justification.JustifyCenter; - Assert.AreEqual(container.JustifyContent, FlexContainer.Justification.JustifyCenter, "Check Justify center Fail"); - - container.JustifyContent = FlexContainer.Justification.JustifyFlexEnd; - Assert.AreEqual(container.JustifyContent, FlexContainer.Justification.JustifyFlexEnd, "Check Justify End Fail"); - - container.JustifyContent = FlexContainer.Justification.JustifyFlexStart; - Assert.AreEqual(container.JustifyContent, FlexContainer.Justification.JustifyFlexStart, "Check Justify Start Fail"); - - container.JustifyContent = FlexContainer.Justification.JustifySpaceAround; - Assert.AreEqual(container.JustifyContent, FlexContainer.Justification.JustifySpaceAround, "Check Justify Around Fail"); - - container.JustifyContent = FlexContainer.Justification.JustifySpaceBetween; - Assert.AreEqual(container.JustifyContent, FlexContainer.Justification.JustifySpaceBetween, "Check Justify Between Fail"); - - Window.Instance.GetDefaultLayer().Remove(container); - } - - [Test] - [Category("P1")] - [Description("Test AlignItems. Check Item Alignment.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.AlignItems A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW PRE")] - [Property("AUTHOR", "Xuemei Chen, xnicole.chen@samsung.com")] - public void AlignItems_SET_GET_VALUE() - { - FlexContainer container = new FlexContainer(); - Window stage = Window.Instance; - Window.Instance.GetDefaultLayer().Add(container); - - container.AlignItems = FlexContainer.Alignment.AlignFlexStart; - Assert.AreEqual(container.AlignItems, FlexContainer.Alignment.AlignFlexStart, "Check Items Align Start Fail"); - - container.AlignItems = FlexContainer.Alignment.AlignFlexEnd; - Assert.AreEqual(container.AlignItems, FlexContainer.Alignment.AlignFlexEnd, "Check Items Align End Fail"); - - Window.Instance.GetDefaultLayer().Remove(container); - } - - [Test] - [Category("P1")] - [Description("Test AlignContent. Check Content Alignment.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.AlignContent A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW PRE")] - [Property("AUTHOR", "Xuemei Chen, xnicole.chen@samsung.com")] - public void AlignContent_SET_GET_VALUE() - { - FlexContainer container = new FlexContainer(); - Window stage = Window.Instance; - Window.Instance.GetDefaultLayer().Add(container); - - container.AlignContent = FlexContainer.Alignment.AlignStretch; - Assert.AreEqual(container.AlignContent, FlexContainer.Alignment.AlignStretch, "Check Content Align Stretch Fail"); - Window.Instance.GetDefaultLayer().Remove(container); - } - - [Test] - [Category("P1")] - [Description("Test Dispose, try to dispose the FlexContainer.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.FlexContainer.Dispose M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR MCST")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void Dispose_TEST() - { - /* TEST CODE */ - try - { - FlexContainer flexContainer = new FlexContainer(); - flexContainer.Dispose(); - } - catch (Exception e) - { - Tizen.Log.Error(TAG, "Caught Exception" + e.ToString()); - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString()); - Assert.Fail("Caught Exception" + e.ToString()); - } - } - } -} diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs index 85ceca9..f54d9bb 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSView.cs @@ -1514,61 +1514,6 @@ namespace Tizen.NUI.Tests Assert.IsTrue(view.Focusable, "The view should be focusable now"); } - - [Test] - [Category("P1")] - [Description("Test FlexMargin. Check whether FlexMargin is readable and writable.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.View.FlexMargin A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void FlexMargin_SET_GET_VALUE() - { - /* TEST CODE */ - View view = new View(); - view.FlexMargin = new Vector4(10.0f, 10.0f, 10.0f, 10.0f); - Assert.AreEqual(10.0f, view.FlexMargin.X, "The FlexMargin.X value of View is not correct!"); - Assert.AreEqual(10.0f, view.FlexMargin.Y, "The FlexMargin.X value of View is not correct!"); - Assert.AreEqual(10.0f, view.FlexMargin.X, "The FlexMargin.Y value of View is not correct!"); - Assert.AreEqual(10.0f, view.FlexMargin.W, "The FlexMargin.Z value of View is not correct!"); - } - - - [Test] - [Category("P1")] - [Description("Test AlignSelf. Check whether AlignSelf is readable and writable.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.View.AlignSelf A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void AlignSelf_SET_GET_VALUE() - { - /* TEST CODE */ - View view = new View(); - view.AlignSelf = 1; - Assert.AreEqual(1, view.AlignSelf, "The AlignSelf value of View is not correct!"); - } - - [Test] - [Category("P1")] - [Description("Test Flex. Check whether Flex is readable and writable.")] - [Property("SPEC", "Tizen.NUI.BaseComponents.View.Flex A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")] - public void Flex_SET_GET_VALUE() - { - /* TEST CODE */ - FlexContainer flexContainer = new FlexContainer(); - Window.Instance.GetDefaultLayer().Add(flexContainer); - View view = new View(); - flexContainer.Add(view); - - view.Flex = 2.0f; - Assert.AreEqual(2.0f, view.Flex, "The Flex value of View is not correct!"); - Window.Instance.GetDefaultLayer().Remove(flexContainer); - } - [Test] [Category("P1")] [Description("Test CellVerticalAlignment. Check whether CellVerticalAlignment is readable and writable.")] -- 2.7.4