[NUI][TEST] Update TCs of NUI.Components.
authorguowei.wang <guowei.wang@samsung.com>
Sun, 24 Apr 2022 11:51:58 +0000 (19:51 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 26 Apr 2022 04:41:13 +0000 (13:41 +0900)
13 files changed:
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/res/demoVideo.mp4 [new file with mode: 0755]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/FlexibleView/TSFlexibleViewAdapter.cs [new file with mode: 0755]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/FlexibleView/TSFlexibleViewHelper.cs [new file with mode: 0755]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/FlexibleView/TSFlexibleViewLayoutManager.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/FlexibleView/TSOrientationHelper.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/RecyclerView/TSRecyclerView.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSButton.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSDatePicker.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSMenu.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSPopup.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSScrollableBase.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSTimePicker.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Extension/TSLottieSwitchExtension.cs

diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/res/demoVideo.mp4 b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/res/demoVideo.mp4
new file mode 100755 (executable)
index 0000000..9232219
Binary files /dev/null and b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/res/demoVideo.mp4 differ
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/FlexibleView/TSFlexibleViewAdapter.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/FlexibleView/TSFlexibleViewAdapter.cs
new file mode 100755 (executable)
index 0000000..9da66de
--- /dev/null
@@ -0,0 +1,115 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Tizen.NUI.Components.Devel.Tests
+{
+    using tlog = Tizen.Log;
+
+    [TestFixture]
+    [Description("Controls/FlexibleView/FlexibleViewAdapter")]
+    public class FlexibleViewAdapterTest
+    {
+        private const string tag = "NUITEST";
+
+        private Vector2 scrnSize;
+        private ListBridge adapter;
+        private FlexibleView horizontalFlexibleView;
+        private LinearLayoutManager horizontalLayoutManager;
+    }
+
+    [TearDown]
+    public void Destroy()
+    {
+        scrnSize?.Dispose();
+        tlog.Info(tag, "Destroy() is called!");
+    }
+
+    private FlexibleView GetHorizontalFlexibleView()
+    {
+        horizontalFlexibleView = new FlexibleView();
+        Assert.IsNotNull(horizontalFlexibleView, "should be not null");
+        Assert.IsInstanceOf<FlexibleView>(horizontalFlexibleView, "should be an instance of testing target class!");
+
+        horizontalFlexibleView.Name = "FlexibleView";
+        horizontalFlexibleView.WidthSpecification = 400;
+        horizontalFlexibleView.HeightSpecification = 450;
+        horizontalFlexibleView.Padding = new Extents(10, 10, 10, 10);
+        horizontalFlexibleView.BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.4f);
+
+        List<ListItemData> dataList = new List<ListItemData>();
+        for (int i = 0; i < 4; ++i)
+        {
+            dataList.Add(new ListItemData(i));
+        }
+        adapter = new ListBridge(dataList);
+        horizontalFlexibleView.SetAdapter(adapter);
+        horizontalFlexibleView.OnRelayout(scrnSize, null);
+
+        horizontalLayoutManager = new LinearLayoutManager(LinearLayoutManager.HORIZONTAL);
+        horizontalFlexibleView.SetLayoutManager(horizontalLayoutManager);
+        horizontalFlexibleView.OnRelayout(scrnSize, null);
+
+        return horizontalFlexibleView;
+    }
+
+    [Test]
+    [Category("P1")]
+    [Description("FlexibleViewAdapter NotifyItemChanged.")]
+    [Property("SPEC", "Tizen.NUI.Components.FlexibleView.FlexibleViewAdapter.NotifyItemChanged M")]
+    [Property("SPEC_URL", "-")]
+    [Property("CRITERIA", "MR")]
+    [Property("COVPARAM", "")]
+    [Property("AUTHOR", "guowei.wang@samsung.com")]
+    public void FlexibleViewAdapterNotifyItemChanged()
+    {
+        tlog.Debug(tag, $"FlexibleViewAdapterNotifyItemChanged START");
+
+        var testingTarget = GetHorizontalFlexibleView();
+        Assert.IsNotNull(testingTarget, "should be not null");
+        Assert.IsInstanceOf<FlexibleView>(testingTarget, "should be an instance of testing target class!");
+
+        try
+        {
+            testingTarget.GetAdapter().NotifyItemChanged(2);
+        }
+        catch (Exception e)
+        {
+            tlog.Debug(tag, e.Message.ToString());
+            Assert.Fail("Caught Exception : Failed!");
+        }
+
+        testingTarget.Dispose();
+        tlog.Debug(tag, $"FlexibleViewAdapterNotifyItemChanged END (OK)");
+    }
+
+    [Test]
+    [Category("P1")]
+    [Description("FlexibleViewAdapter NotifyItemRangeChanged.")]
+    [Property("SPEC", "Tizen.NUI.Components.FlexibleView.FlexibleViewAdapter.NotifyItemRangeChanged M")]
+    [Property("SPEC_URL", "-")]
+    [Property("CRITERIA", "MR")]
+    [Property("COVPARAM", "")]
+    [Property("AUTHOR", "guowei.wang@samsung.com")]
+    public void FlexibleViewAdapterNotifyItemRangeChanged()
+    {
+        tlog.Debug(tag, $"FlexibleViewAdapterNotifyItemRangeChanged START");
+
+        var testingTarget = GetHorizontalFlexibleView();
+        Assert.IsNotNull(testingTarget, "should be not null");
+        Assert.IsInstanceOf<FlexibleView>(testingTarget, "should be an instance of testing target class!");
+
+        try
+        {
+            testingTarget.GetAdapter().NotifyItemRangeChanged(2, 2);
+        }
+        catch (Exception e)
+        {
+            tlog.Debug(tag, e.Message.ToString());
+            Assert.Fail("Caught Exception : Failed!");
+        }
+
+        testingTarget.Dispose();
+        tlog.Debug(tag, $"FlexibleViewAdapterNotifyItemRangeChanged END (OK)");
+    }
+}
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/FlexibleView/TSFlexibleViewHelper.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/FlexibleView/TSFlexibleViewHelper.cs
new file mode 100755 (executable)
index 0000000..323e87d
--- /dev/null
@@ -0,0 +1,122 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Tizen.NUI.Components.Devel.Tests
+{
+    using tlog = Tizen.Log;
+
+    [TestFixture]
+    [Description("Controls/FlexibleView/FlexibleView.Helper")]
+    public class FlexibleViewHelperTest
+    {
+        private const string tag = "NUITEST";
+
+        private Vector2 scrnSize;
+        private ListBridge adapter;
+        private FlexibleView horizontalFlexibleView;
+        private LinearLayoutManager horizontalLayoutManager;
+
+        [SetUp]
+        public void Init()
+        {
+            tlog.Info(tag, "Init() is called!");
+            scrnSize = new Vector2(1920, 1080);
+        }
+
+        [TearDown]
+        public void Destroy()
+        {
+            scrnSize?.Dispose();
+            tlog.Info(tag, "Destroy() is called!");
+        }
+
+        private FlexibleView GetHorizontalFlexibleView()
+        {
+            horizontalFlexibleView = new FlexibleView();
+            Assert.IsNotNull(horizontalFlexibleView, "should be not null");
+            Assert.IsInstanceOf<FlexibleView>(horizontalFlexibleView, "should be an instance of testing target class!");
+
+            horizontalFlexibleView.Name = "FlexibleView";
+            horizontalFlexibleView.WidthSpecification = 400;
+            horizontalFlexibleView.HeightSpecification = 450;
+            horizontalFlexibleView.Padding = new Extents(10, 10, 10, 10);
+            horizontalFlexibleView.BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.4f);
+
+            List<ListItemData> dataList = new List<ListItemData>();
+            for (int i = 0; i < 4; ++i)
+            {
+                dataList.Add(new ListItemData(i));
+            }
+            adapter = new ListBridge(dataList);
+            horizontalFlexibleView.SetAdapter(adapter);
+            horizontalFlexibleView.OnRelayout(scrnSize, null);
+
+            horizontalLayoutManager = new LinearLayoutManager(LinearLayoutManager.HORIZONTAL);
+            horizontalFlexibleView.SetLayoutManager(horizontalLayoutManager);
+            horizontalFlexibleView.OnRelayout(scrnSize, null);
+
+            return horizontalFlexibleView;
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ChildHelper RemoveViewAt.")]
+        [Property("SPEC", "Tizen.NUI.Components.FlexibleView.ChildHelper.RemoveViewAt M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ChildHelperRemoveViewAt()
+        {
+            tlog.Debug(tag, $"ChildHelperRemoveViewAt START");
+
+            var testingTarget = GetHorizontalFlexibleView();
+            Assert.IsNotNull(testingTarget, "should be not null");
+            Assert.IsInstanceOf<FlexibleView>(testingTarget, "should be an instance of testing target class!");
+
+            try
+            {
+                testingTarget.GetChildHelper().RemoveViewAt(1);
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"ChildHelperRemoveViewAt END (OK)");
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("ChildHelper RemoveViewsRange.")]
+        [Property("SPEC", "Tizen.NUI.Components.FlexibleView.ChildHelper.RemoveViewsRange M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void ChildHelperRemoveViewsRange()
+        {
+            tlog.Debug(tag, $"ChildHelperRemoveViewsRange START");
+
+            var testingTarget = GetHorizontalFlexibleView();
+            Assert.IsNotNull(testingTarget, "should be not null");
+            Assert.IsInstanceOf<FlexibleView>(testingTarget, "should be an instance of testing target class!");
+
+            try
+            {
+                testingTarget.GetChildHelper().RemoveViewsRange(1, 2);
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"ChildHelperRemoveViewsRange END (OK)");
+        }
+    }
+}
index 61a79d8..9731a8a 100755 (executable)
@@ -602,23 +602,18 @@ namespace Tizen.NUI.Components.Devel.Tests
         {
             tlog.Debug(tag, $"FlexibleViewLayoutManagerRemoveAndRecycleViewAt START");
 
-            var testingTarget = new FlexibleViewLayoutManagerImpl();
+            var testingTarget = GetVerticalFlexibleView();
             Assert.IsNotNull(testingTarget, "should be not null");
-            Assert.IsInstanceOf<FlexibleViewLayoutManager>(testingTarget, "should be an instance of testing target class!");
+            Assert.IsInstanceOf<FlexibleView>(testingTarget, "should be an instance of testing target class!");
 
-            using (FlexibleView view = new FlexibleView() { Padding = new Extents(10, 10, 10, 10) })
+            try
             {
-                FlexibleViewRecycler recycler = new FlexibleViewRecycler(view);
-
-                try
-                {
-                    testingTarget.RemoveAndRecycleViewAt(0, recycler);
-                }
-                catch (Exception e)
-                {
-                    tlog.Debug(tag, e.Message.ToString());
-                    Assert.Fail("Caught Exception : Failed!");
-                }
+                verticalLayoutManager.RemoveAndRecycleViewAt(0, testingTarget.GetRecycler());
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
             }
 
             testingTarget.Dispose();
@@ -703,5 +698,36 @@ namespace Tizen.NUI.Components.Devel.Tests
             testingTarget.Dispose();
             tlog.Debug(tag, $"FlexibleViewLayoutManagerOnFocusSearchFailed END (OK)");
         }
+
+        [Test]
+        [Category("P1")]
+        [Description("FlexibleViewLayoutManager RemoveAndRecycleViewAt.")]
+        [Property("SPEC", "Tizen.NUI.Components.FlexibleViewLayoutManager.RemoveAndRecycleViewAt M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void FlexibleViewLayoutManagerOnLayoutComplete()
+        {
+            tlog.Debug(tag, $"FlexibleViewLayoutManagerOnLayoutComplete START");
+
+            var testingTarget = GetVerticalFlexibleView();
+            Assert.IsNotNull(testingTarget, "should be not null");
+            Assert.IsInstanceOf<FlexibleView>(testingTarget, "should be an instance of testing target class!");
+
+            var vHelper = new VerticalHelper(verticalLayoutManager);
+            try
+            {
+                vHelper.OnLayoutComplete();
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"FlexibleViewLayoutManagerOnLayoutComplete END (OK)");
+        }
     }
 }
index 28144f6..fa71df0 100755 (executable)
@@ -27,85 +27,6 @@ namespace Tizen.NUI.Components.Devel.Tests
             tlog.Info(tag, "Destroy() is called!");
         }
 
-        internal class OrientationHelperImpl : OrientationHelper
-        {
-            public OrientationHelperImpl(FlexibleViewLayoutManager layoutManager) : base(layoutManager)
-            { 
-                
-            }
-
-            public override float GetEnd()
-            {
-                throw new NotImplementedException();
-            }
-
-            public override float GetEndAfterPadding()
-            {
-                throw new NotImplementedException();
-            }
-
-            public override float GetEndPadding()
-            {
-                throw new NotImplementedException();
-            }
-
-            public override float GetStartAfterPadding()
-            {
-                throw new NotImplementedException();
-            }
-
-            public override float GetTotalSpace()
-            {
-                throw new NotImplementedException();
-            }
-
-            public override float GetViewHolderEnd(FlexibleViewViewHolder holder)
-            {
-                throw new NotImplementedException();
-            }
-
-            public override float GetViewHolderMeasurement(FlexibleViewViewHolder holder)
-            {
-                throw new NotImplementedException();
-            }
-
-            public override float GetViewHolderMeasurementInOther(FlexibleViewViewHolder holder)
-            {
-                return holder.Bottom - holder.Top;
-            }
-
-            public override float GetViewHolderStart(FlexibleViewViewHolder holder)
-            {
-                throw new NotImplementedException();
-            }
-
-            public override void OffsetChildren(float amount, bool immediate)
-            {
-                throw new NotImplementedException();
-            }
-
-            internal override void OffsetChild(FlexibleViewViewHolder holder, int offset)
-            {
-                throw new NotImplementedException();
-            }
-        }
-
-        internal class FlexibleViewLayoutManagerImpl : FlexibleViewLayoutManager
-        {
-            public FlexibleViewLayoutManagerImpl() : base()
-            { }
-
-            public override void OnLayoutChildren(FlexibleViewRecycler recycler)
-            {
-                throw new NotImplementedException();
-            }
-
-            protected override int GetNextPosition(int position, Direction direction)
-            {
-                throw new NotImplementedException();
-            }
-        }
-
         [Test]
         [Category("P1")]
         [Description("OrientationHelper OnLayoutComplete.")]
@@ -118,17 +39,13 @@ namespace Tizen.NUI.Components.Devel.Tests
         {
             tlog.Debug(tag, $"OrientationHelperOnLayoutComplete START");
 
-            FlexibleViewLayoutManager manager = new FlexibleViewLayoutManagerImpl();
-            Assert.IsNotNull(manager, "should be not null");
-            Assert.IsInstanceOf<FlexibleViewLayoutManager>(manager, "should be an instance of testing target class!");
-
-            var testingTarget = new OrientationHelperImpl(manager);
+            var testingTarget = new LinearLayoutManager(LinearLayoutManager.VERTICAL);
             Assert.IsNotNull(testingTarget, "should be not null");
-            Assert.IsInstanceOf<OrientationHelper>(testingTarget, "should be an instance of testing target class!");
+            Assert.IsInstanceOf<LinearLayoutManager>(testingTarget, "should be an instance of testing target class!");
 
             try
             {
-                testingTarget.OnLayoutComplete();
+                testingTarget.orientationHelper.OnLayoutComplete();
             }
             catch (Exception e)
             {
@@ -136,7 +53,7 @@ namespace Tizen.NUI.Components.Devel.Tests
                 Assert.Fail("Caught Exception : Failed!");
             }
 
-            manager.Dispose();
+            testingTarget.Dispose();
             tlog.Debug(tag, $"OrientationHelperOnLayoutComplete END (OK)");
         }
 
@@ -152,18 +69,13 @@ namespace Tizen.NUI.Components.Devel.Tests
         {
             tlog.Debug(tag, $"OrientationHelperGetTotalSpaceChange START");
 
-            FlexibleViewLayoutManager manager = new FlexibleViewLayoutManagerImpl();
-            Assert.IsNotNull(manager, "should be not null");
-            Assert.IsInstanceOf<FlexibleViewLayoutManager>(manager, "should be an instance of testing target class!");
-
-            var testingTarget = new OrientationHelperImpl(manager);
+            var testingTarget = new LinearLayoutManager(LinearLayoutManager.VERTICAL);
             Assert.IsNotNull(testingTarget, "should be not null");
-            Assert.IsInstanceOf<OrientationHelper>(testingTarget, "should be an instance of testing target class!");
+            Assert.IsInstanceOf<LinearLayoutManager>(testingTarget, "should be an instance of testing target class!");
 
             try
             {
-                var result = testingTarget.GetTotalSpaceChange();
-                tlog.Debug(tag, "GetTotalSpaceChange : " + result);
+                testingTarget.orientationHelper.GetTotalSpaceChange();
             }
             catch (Exception e)
             {
@@ -171,7 +83,7 @@ namespace Tizen.NUI.Components.Devel.Tests
                 Assert.Fail("Caught Exception : Failed!");
             }
 
-            manager.Dispose();
+            testingTarget.Dispose();
             tlog.Debug(tag, $"OrientationHelperGetTotalSpaceChange END (OK)");
         }
 
@@ -187,23 +99,21 @@ namespace Tizen.NUI.Components.Devel.Tests
         {
             tlog.Debug(tag, $"OrientationHelperGetViewHolderMeasurementInOther START");
 
-            FlexibleViewLayoutManager manager = new FlexibleViewLayoutManagerImpl();
-            Assert.IsNotNull(manager, "should be not null");
-            Assert.IsInstanceOf<FlexibleViewLayoutManager>(manager, "should be an instance of testing target class!");
-
-            var testingTarget = new OrientationHelperImpl(manager);
-            Assert.IsNotNull(testingTarget, "should be not null");
-            Assert.IsInstanceOf<OrientationHelper>(testingTarget, "should be an instance of testing target class!");
-
-            using (View view = new View() { Size = new Size(100, 200) })
+            using (LinearLayoutManager manager = new LinearLayoutManager(LinearLayoutManager.VERTICAL))
             {
-                FlexibleViewViewHolder holder = new FlexibleViewViewHolder(view);
+                var testingTarget = new VerticalHelper(manager);
+                Assert.IsNotNull(testingTarget, "should be not null");
+                Assert.IsInstanceOf<VerticalHelper>(testingTarget, "should be an instance of testing target class!");
 
-                var result = testingTarget.GetViewHolderMeasurementInOther(holder);
-                tlog.Debug(tag, "GetViewHolderMeasurementInOther : " + result);
-            }
+                using (View view = new View() { Size = new Size(100, 200) })
+                {
+                    FlexibleViewViewHolder holder = new FlexibleViewViewHolder(view);
 
-            manager.Dispose();
+                    var result = testingTarget.GetViewHolderMeasurementInOther(holder);
+                    tlog.Debug(tag, "GetViewHolderMeasurementInOther : " + result);
+                }
+            }
+           
             tlog.Debug(tag, $"OrientationHelperGetViewHolderMeasurementInOther END (OK)");
         }
     }
index 59fa583..f829e19 100755 (executable)
@@ -25,10 +25,18 @@ namespace Tizen.NUI.Components.Devel.Tests
                 Source.Add(new TestItem(i, $"Test Item [{i}]", new Color(((float)(Rand.Next(255)) / 255), ((float)(Rand.Next(255)) / 255), ((float)(Rand.Next(255)) / 255), 1)));
         }
 
+        internal class ItemsLayouterImpl : ItemsLayouter
+        {
+            public ItemsLayouterImpl() : base()
+            { }
+        }
+
         internal class RecyclerViewImpl : RecyclerView
         {
             public RecyclerViewImpl() : base()
-            { }
+            {
+                base.InternalItemsLayouter = new ItemsLayouterImpl();
+            }
 
             public float OnAdjustTargetPositionOfScrollAnimation(float position)
             {
index b3d6d60..d40a06f 100755 (executable)
@@ -190,8 +190,11 @@ namespace Tizen.NUI.Components.Devel.Tests.testcase.Controls
 
             NUIApplication.GetDefaultWindow().GetDefaultLayer().Add(testingTarget);
 
-            testingTarget.TranslatableText = "TranslatableText";
-            tlog.Debug(tag, "testingTarget.TranslatableText : " + testingTarget.TranslatableText);
+            if (NUIApplication.MultilingualResourceManager != null)
+            {
+                testingTarget.TranslatableText = "Test TranslatableText";
+                tlog.Debug(tag, "testingTarget.TranslatableText : " + testingTarget.TranslatableText);
+            }
 
             NUIApplication.GetDefaultWindow().GetDefaultLayer().Remove(testingTarget);
 
index 93977de..efc6060 100755 (executable)
@@ -92,10 +92,15 @@ namespace Tizen.NUI.Components.Devel.Tests
             {
                 Pickers = new PickerStyle()
                 {
-                    StartScrollOffset = new Size(10, 10)
+                    StartScrollOffset = new Size(10, 10),
+                    Divider = new ViewStyle()
+                    {
+                        Position = new Position(30, 40),
+                    }
                 },
                 CellPadding = new Size2D(20, 20),
             };
+
             var testingTarget = new DatePicker(dpStyle);
             Assert.IsNotNull(testingTarget, "null handle");
             Assert.IsInstanceOf<DatePicker>(testingTarget, "Should return DatePicker instance.");
index 9e5f950..325e54a 100755 (executable)
@@ -281,31 +281,56 @@ namespace Tizen.NUI.Components.Devel.Tests
             testingTarget.Post();
             testingTarget.Dismiss();
 
-            testingTarget.HorizontalPositionToAnchor = Menu.RelativePosition.Center;
-            testingTarget.VerticalPositionToAnchor = Menu.RelativePosition.Center;
-            testingTarget.Post();
-            testingTarget.Dismiss();
+            tlog.Debug(tag, $"MenuPost END (OK)");
+        }
 
-            testingTarget.HorizontalPositionToAnchor = Menu.RelativePosition.End;
-            testingTarget.VerticalPositionToAnchor = Menu.RelativePosition.End;
-            testingTarget.Post();
-            testingTarget.Dismiss();
+        [Test]
+        [Category("P1")]
+        [Description("Menu Post.")]
+        [Property("SPEC", "Tizen.NUI.Components.Menu.Post M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        public void MenuPostViewLayoutDirectionTypeIsRTL()
+        {
+            tlog.Debug(tag, $"MenuPostViewLayoutDirectionTypeIsRTL START");
 
-            // LayoutDirection == ViewLayoutDirectionType.LTR
-            testingTarget.LayoutDirection = ViewLayoutDirectionType.RTL;
+            var testingTarget = new MyMenu()
+            {
+                Size = new Size(100, 200),
+                BackgroundColor = Color.Green,
+                LayoutDirection = ViewLayoutDirectionType.RTL
+            };
+            Assert.IsNotNull(testingTarget, "Can't create success object Menu");
+            Assert.IsInstanceOf<Menu>(testingTarget, "Costruct Menu Fail");
 
-            testingTarget.HorizontalPositionToAnchor = Menu.RelativePosition.Start;
-            testingTarget.VerticalPositionToAnchor = Menu.RelativePosition.Start;
-            testingTarget.Post();
-            testingTarget.Dismiss();
+            View anchor = new View()
+            {
+                Size = new Size(100, 30),
+                BackgroundColor = Color.Cyan
+            };
+            testingTarget.Anchor = anchor;
+
+            View content = new View()
+            {
+                Size = new Size2D(100, 30),
+            };
+            testingTarget.MyContent = content;
+
+            List<MenuItem> items = new List<MenuItem>();
+            MenuItem item = new MenuItem();
+            items.Add(item);
+            testingTarget.Items = items;
+
+            testingTarget.LayoutDirection = ViewLayoutDirectionType.RTL;
 
             testingTarget.HorizontalPositionToAnchor = Menu.RelativePosition.End;
             testingTarget.VerticalPositionToAnchor = Menu.RelativePosition.End;
             testingTarget.Post();
             testingTarget.Dismiss();
 
-            testingTarget.Dispose();
-            tlog.Debug(tag, $"MenuPost END (OK)");
+            tlog.Debug(tag, $"MenuPostViewLayoutDirectionTypeIsRTL END (OK)");
         }
     }
 }
index 7e67f5f..3caed2a 100755 (executable)
@@ -17,6 +17,28 @@ namespace Tizen.NUI.Components.Devel.Tests
         private const string tag = "NUITEST";
         private string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
 
+        internal class PopupImpl : Popup
+        {
+            public PopupImpl() : base()
+            { }
+
+            public void OnCreateViewStyle()
+            {
+
+                base.CreateViewStyle();
+            }
+
+            public void OnUpdateImpl()
+            {
+                base.OnUpdate();
+            }
+
+            public AccessibilityStates OnAccessibilityCalculateStates()
+            {
+                return base.AccessibilityCalculateStates(1UL << 3);
+            }
+        }
+
         [SetUp]
         public void Init()
         {
@@ -202,5 +224,278 @@ namespace Tizen.NUI.Components.Devel.Tests
             testingTarget.Dispose();
             tlog.Debug(tag, $"PopupAddButton END (OK)");
         }
+
+        [Category("P1")]
+        [Description("Popup ButtonCount.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.ButtonCount A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupButtonCount()
+        {
+            tlog.Debug(tag, $"PopupButtonCount START");
+
+            var testingTarget = new Popup();
+            Assert.IsNotNull(testingTarget, "null handle");
+            Assert.IsInstanceOf<Popup>(testingTarget, "Should return Popup instance.");
+
+            tlog.Debug(tag, "ButtonCount :" + testingTarget.ButtonCount);
+
+            testingTarget.ButtonCount = 3;
+            tlog.Debug(tag, "ButtonCount :" + testingTarget.ButtonCount);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupButtonCount END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup ButtonTextPointSize.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.ButtonTextPointSize A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupButtonTextPointSize()
+        {
+            tlog.Debug(tag, $"PopupButtonTextPointSize START");
+
+            var testingTarget = new Popup();
+            Assert.IsNotNull(testingTarget, "null handle");
+            Assert.IsInstanceOf<Popup>(testingTarget, "Should return Popup instance.");
+
+            testingTarget.ButtonTextPointSize = 15.0f;
+            tlog.Debug(tag, "ButtonTextPointSize :" + testingTarget.ButtonTextPointSize);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupButtonTextPointSize END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup ButtonFontFamily.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.ButtonFontFamily A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupButtonFontFamily()
+        {
+            tlog.Debug(tag, $"PopupButtonFontFamily START");
+
+            var testingTarget = new Popup();
+            Assert.IsNotNull(testingTarget, "null handle");
+            Assert.IsInstanceOf<Popup>(testingTarget, "Should return Popup instance.");
+
+            testingTarget.ButtonFontFamily = "Samsung One UI";
+            tlog.Debug(tag, "ButtonFontFamily :" + testingTarget.ButtonFontFamily);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupButtonFontFamily END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup ButtonTextColor.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.ButtonTextColor A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupButtonTextColor()
+        {
+            tlog.Debug(tag, $"PopupButtonTextColor START");
+
+            var testingTarget = new Popup();
+            Assert.IsNotNull(testingTarget, "null handle");
+            Assert.IsInstanceOf<Popup>(testingTarget, "Should return Popup instance.");
+
+            testingTarget.ButtonTextColor = Color.Yellow;
+            tlog.Debug(tag, "ButtonTextColor :" + testingTarget.ButtonTextColor);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupButtonTextColor END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup ButtonTextAlignment.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.ButtonTextAlignment A")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "PRW")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupButtonTextAlignment()
+        {
+            tlog.Debug(tag, $"PopupButtonTextAlignment START");
+
+            var testingTarget = new Popup();
+            Assert.IsNotNull(testingTarget, "null handle");
+            Assert.IsInstanceOf<Popup>(testingTarget, "Should return Popup instance.");
+
+            testingTarget.ButtonTextAlignment = HorizontalAlignment.Center;
+            tlog.Debug(tag, "ButtonTextAlignment :" + testingTarget.ButtonTextAlignment);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupButtonTextAlignment END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup SetButtonText.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.SetButtonText M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupSetButtonText()
+        {
+            tlog.Debug(tag, $"PopupSetButtonText START");
+
+            var testingTarget = new Popup();
+            Assert.IsNotNull(testingTarget, "null handle");
+            Assert.IsInstanceOf<Popup>(testingTarget, "Should return Popup instance.");
+
+            testingTarget.SetButtonText(0, "PopupText");
+            tlog.Debug(tag, "ButtonText :" + testingTarget.GetButton(0).Text);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupSetButtonText END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup OnFocusGained.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.OnFocusGained M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupOnFocusGained()
+        {
+            tlog.Debug(tag, $"PopupOnFocusGained START");
+
+            var testingTarget = new Popup();
+            Assert.IsNotNull(testingTarget, "null handle");
+            Assert.IsInstanceOf<Popup>(testingTarget, "Should return Popup instance.");
+
+            testingTarget.OnFocusGained();
+            tlog.Debug(tag, "IsFocused :" + testingTarget.IsFocused);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupOnFocusGained END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup OnFocusGained.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.OnFocusGained M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupOnFocusLost()
+        {
+            tlog.Debug(tag, $"PopupOnFocusLost START");
+
+            var testingTarget = new Popup();
+            Assert.IsNotNull(testingTarget, "null handle");
+            Assert.IsInstanceOf<Popup>(testingTarget, "Should return Popup instance.");
+
+            testingTarget.OnFocusLost();
+            tlog.Debug(tag, "IsFocused :" + testingTarget.IsFocused);
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupOnFocusLost END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup CreateViewStyle.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.CreateViewStyle M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupCreateViewStyle()
+        {
+            tlog.Debug(tag, $"PopupCreateViewStyle START");
+
+            var testingTarget = new PopupImpl();
+            Assert.IsNotNull(testingTarget, "null handle");
+
+            try
+            {
+                testingTarget.OnCreateViewStyle();
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupCreateViewStyle END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup OnUpdate.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.OnUpdate M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupOnUpdate()
+        {
+            tlog.Debug(tag, $"PopupOnUpdate START");
+
+            var testingTarget = new PopupImpl();
+            Assert.IsNotNull(testingTarget, "null handle");
+
+            try
+            {
+                testingTarget.OnUpdateImpl();
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupOnUpdate END (OK)");
+        }
+
+        [Category("P1")]
+        [Description("Popup AccessibilityCalculateStates.")]
+        [Property("SPEC", "Tizen.NUI.Components.Popup.AccessibilityCalculateStates M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("COVPARAM", "")]
+        [Property("AUTHOR", "guowei.wang@samsung.com")]
+        [Obsolete]
+        public void PopupAccessibilityCalculateStates()
+        {
+            tlog.Debug(tag, $"PopupAccessibilityCalculateStates START");
+
+            var testingTarget = new PopupImpl();
+            Assert.IsNotNull(testingTarget, "null handle");
+
+            try
+            {
+                testingTarget.OnAccessibilityCalculateStates();
+            }
+            catch (Exception e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                Assert.Fail("Caught Exception : Failed!");
+            }
+
+            testingTarget.Dispose();
+            tlog.Debug(tag, $"PopupAccessibilityCalculateStates END (OK)");
+        }
     }
 }
index 821e137..8bc261c 100755 (executable)
@@ -474,6 +474,7 @@ namespace Tizen.NUI.Components.Devel.Tests
             View[] views = new View[10];
             for (int i = 0; i < 10; i++)
             {
+                views[i] = new View();
                 views[i].Size = new Size(200, 200);
                 testingTarget.Add(views[i]);
             }
index b82ca49..b5ac675 100755 (executable)
@@ -139,7 +139,7 @@ namespace Tizen.NUI.Components.Devel.Tests
 
             var testingTarget = new TimeChangedEventArgs(DateTime.Now);
             Assert.IsNotNull(testingTarget, "null handle");
-            Assert.IsInstanceOf<TimePicker>(testingTarget, "Should return TimePicker instance.");
+            Assert.IsInstanceOf<TimeChangedEventArgs>(testingTarget, "Should return TimeChangedEventArgs instance.");
 
             tlog.Debug(tag, "Time : " + testingTarget.Time);
 
index dd0008c..2ad1a70 100755 (executable)
@@ -81,7 +81,8 @@ namespace Tizen.NUI.Components.Devel.Tests
             Assert.IsNotNull(testingTarget, "null handle");
             Assert.IsInstanceOf<LottieSwitchExtension>(testingTarget, "Should return LottieSwitchExtension instance.");
 
-            Button button = new Button()
+            LottieButtonStyle style = new LottieButtonStyle();
+            Button button = new Button(style as ButtonStyle)
             {
                 Size = new Size(100, 80),
             };
@@ -117,7 +118,8 @@ namespace Tizen.NUI.Components.Devel.Tests
             Assert.IsNotNull(testingTarget, "null handle");
             Assert.IsInstanceOf<LottieSwitchExtension>(testingTarget, "Should return LottieSwitchExtension instance.");
 
-            Button button = new Button()
+            LottieButtonStyle style = new LottieButtonStyle();
+            Button button = new Button(style as ButtonStyle)
             {
                 Size = new Size(100, 80),
             };