--- /dev/null
+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)");
+ }
+}
--- /dev/null
+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)");
+ }
+ }
+}
{
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();
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)");
+ }
}
}
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.")]
{
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)
{
Assert.Fail("Caught Exception : Failed!");
}
- manager.Dispose();
+ testingTarget.Dispose();
tlog.Debug(tag, $"OrientationHelperOnLayoutComplete END (OK)");
}
{
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)
{
Assert.Fail("Caught Exception : Failed!");
}
- manager.Dispose();
+ testingTarget.Dispose();
tlog.Debug(tag, $"OrientationHelperGetTotalSpaceChange END (OK)");
}
{
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)");
}
}
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)
{
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);
{
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.");
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)");
}
}
}
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()
{
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)");
+ }
}
}
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]);
}
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);
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),
};
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),
};