From 7b9cf00900bfbb450f2f1376198bfafd75b02407 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Thu, 24 Nov 2022 21:56:06 +0900 Subject: [PATCH] [NUI][Non-ACR][Fix tc fail] the default value of FontSizeScale may be different depending on Theme(or profile). in tizen_7.5, the default value is different from tizen_7.0 according to UX requirements. but since tct has not yet branch out to tizen_7.0, so I deleted the default value check tc to satisfy the 2 versions tc pass. Change-Id: I796948cb067df33b6068d4eefdaa04cd800bbd31 Signed-off-by: Bowon Ryu --- tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextEditor.cs | 3 +-- tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextField.cs | 3 +-- tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextLabel.cs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextEditor.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextEditor.cs index b1c6525..a0bb07a 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextEditor.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextEditor.cs @@ -1363,7 +1363,7 @@ namespace Tizen.NUI.Tests [Test] [Category("P1")] - [Description("Test FontSizeScale. Check the default FontSizeScale and whether FontSizeScale is readable and writable.")] + [Description("Test FontSizeScale. Check whether FontSizeScale is readable and writable.")] [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.FontSizeScale A")] [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] @@ -1372,7 +1372,6 @@ namespace Tizen.NUI.Tests { /* TEST CODE */ TextEditor textEditor = new TextEditor(); - Assert.AreEqual(1.0, textEditor.FontSizeScale, "Retrieved the default FontSizeScale should be equal to 1.0"); float scale = 0.5f; textEditor.FontSizeScale = scale; Assert.AreEqual(scale, textEditor.FontSizeScale, "Retrieved FontSizeScale should be equal to set value"); diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextField.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextField.cs index fe2039b..7b3e742 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextField.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextField.cs @@ -1386,7 +1386,7 @@ namespace Tizen.NUI.Tests [Test] [Category("P1")] - [Description("Test FontSizeScale. Check the default FontSizeScale whether FontSizeScale is readable and writable.")] + [Description("Test FontSizeScale. Check whether FontSizeScale is readable and writable.")] [Property("SPEC", "Tizen.NUI.BaseComponents.TextField.FontSizeScale A")] [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] @@ -1395,7 +1395,6 @@ namespace Tizen.NUI.Tests { /* TEST CODE */ TextField textField = new TextField(); - Assert.AreEqual(1.0, textField.FontSizeScale, "Retrieved the default FontSizeScale should be equal to 1.0"); float scale = 0.5f; textField.FontSizeScale = scale; Assert.AreEqual(scale, textField.FontSizeScale, "Retrieved FontSizeScale should be equal to set value"); diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextLabel.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextLabel.cs index 92936bc..8b55995 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextLabel.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSTextLabel.cs @@ -782,7 +782,7 @@ namespace Tizen.NUI.Tests [Test] [Category("P1")] - [Description("Test FontSizeScale. Check the default FontSizeScale and whether FontSizeScale is readable and writable.")] + [Description("Test FontSizeScale. Check whether FontSizeScale is readable and writable.")] [Property("SPEC", "Tizen.NUI.BaseComponents.TextLabel.FontSizeScale A")] [Property("SPEC_URL", "-")] [Property("CRITERIA", "PRW")] @@ -791,7 +791,6 @@ namespace Tizen.NUI.Tests { /* TEST CODE */ TextLabel textLabel = new TextLabel(); - Assert.AreEqual(1.0, textLabel.FontSizeScale, "Retrieved the default FontSizeScale should be equal to 1.0"); float scale = 0.5f; textLabel.FontSizeScale = scale; Assert.AreEqual(scale, textLabel.FontSizeScale, "Retrieved FontSizeScale should be equal to set value"); -- 2.7.4