From: huiyu.eun Date: Mon, 22 Apr 2019 06:51:13 +0000 (+0900) Subject: [NUI][Non-ACR] Fix FindDefaultFont api checker X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d850f3abb3914b982bfb3aed1eace3e39b2c3477;p=test%2Ftct%2Fcsharp%2Fapi.git [NUI][Non-ACR] Fix FindDefaultFont api checker The default font value is diffent for each devices. If font value is 0, the value is not found. Change-Id: Ia6356b327baa1dfb321c45c066f1c0a1da4cba8f Signed-off-by: huiyu.eun --- diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFontClient.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFontClient.cs index cecace2..11a5824 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFontClient.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSFontClient.cs @@ -71,7 +71,7 @@ namespace Tizen.NUI.Tests Assert.IsNotNull(instance, "Return a null object of FontClient"); uint charcode = 0x0041; uint font = instance.FindDefaultFont(charcode, 768, false); - Assert.AreEqual(2, font, "Font should equal 2!"); + Assert.Greater(font, 0, "font should be greater than zero."); } [Test] @@ -89,7 +89,7 @@ namespace Tizen.NUI.Tests Assert.IsNotNull(instance, "Return a null object of FontClient"); uint charcode = 0x0041; uint font = instance.FindDefaultFont(charcode, 768); - Assert.AreEqual(2, font, "Font should equal 2!"); + Assert.Greater(font, 0, "font should be greater than zero."); } [Test] @@ -107,7 +107,7 @@ namespace Tizen.NUI.Tests Assert.IsNotNull(instance, "Return a null object of FontClient"); uint charcode = 0x0041; uint font = instance.FindDefaultFont(charcode); - Assert.AreEqual(2, font, "Font should equal 2!"); + Assert.Greater(font, 0, "font should be greater than zero."); } [Test]