From 06d1a090400cca135e5c4e5ca6a55bba1e0c6b8e Mon Sep 17 00:00:00 2001 From: zhangzg Date: Mon, 6 Jan 2020 13:39:05 +0900 Subject: [PATCH] [NUI][Non-ACR] Fix Button TC failed issue Change-Id: I640fb4bdfb90bb56e7dfcf53b37223f301eafc7f --- .../Tizen.NUI.Components.Tests/testcase/TSButton.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) mode change 100755 => 100644 tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.cs diff --git a/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.cs b/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.cs old mode 100755 new mode 100644 index 2085f6d..a6e88eb --- a/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.cs +++ b/tct-suite-vs/Tizen.NUI.Components.Tests/testcase/TSButton.cs @@ -401,11 +401,11 @@ namespace Tizen.NUI.Components.Tests Assert.IsNotNull(button, "Should be not null"); Assert.IsInstanceOf(button, "Should be equal!"); - button.IconPadding = new Extents(0, 0, 10, 10); - Assert.AreEqual(0, button.IconPadding.Start, "Retrieved IconPadding.Start should be equal to set value"); - Assert.AreEqual(0, button.IconPadding.End, "Retrieved IconPadding.End should be equal to set value"); - Assert.AreEqual(10, button.IconPadding.Top, "Retrieved IconPadding.Top should be equal to set value"); - Assert.AreEqual(10, button.IconPadding.Bottom, "Retrieved IconPadding.Bottom should be equal to set value"); + button.Style.IconPadding = new Extents(0, 0, 10, 10); + Assert.AreEqual(0, button.Style.IconPadding.Start, "Retrieved IconPadding.Start should be equal to set value"); + Assert.AreEqual(0, button.Style.IconPadding.End, "Retrieved IconPadding.End should be equal to set value"); + Assert.AreEqual(10, button.Style.IconPadding.Top, "Retrieved IconPadding.Top should be equal to set value"); + Assert.AreEqual(10, button.Style.IconPadding.Bottom, "Retrieved IconPadding.Bottom should be equal to set value"); } [Test] @@ -422,11 +422,11 @@ namespace Tizen.NUI.Components.Tests Assert.IsNotNull(button, "Should be not null"); Assert.IsInstanceOf(button, "Should be equal!"); - button.TextPadding = new Extents(0, 0, 10, 10); - Assert.AreEqual(0, button.TextPadding.Start, "Retrieved TextPadding.Start should be equal to set value"); - Assert.AreEqual(0, button.TextPadding.End, "Retrieved TextPadding.End should be equal to set value"); - Assert.AreEqual(10, button.TextPadding.Top, "Retrieved TextPadding.Top should be equal to set value"); - Assert.AreEqual(10, button.TextPadding.Bottom, "Retrieved TextPadding.Bottom should be equal to set value"); + button.Style.TextPadding = new Extents(0, 0, 10, 10); + Assert.AreEqual(0, button.Style.TextPadding.Start, "Retrieved TextPadding.Start should be equal to set value"); + Assert.AreEqual(0, button.Style.TextPadding.End, "Retrieved TextPadding.End should be equal to set value"); + Assert.AreEqual(10, button.Style.TextPadding.Top, "Retrieved TextPadding.Top should be equal to set value"); + Assert.AreEqual(10, button.Style.TextPadding.Bottom, "Retrieved TextPadding.Bottom should be equal to set value"); } [Test] -- 2.7.4