[NUI][Non-ACR] Fix FindDefaultFont api checker 18/204218/2
authorhuiyu.eun <huiyu.eun@samsung.com>
Mon, 22 Apr 2019 06:51:13 +0000 (15:51 +0900)
committerhuiyu eun <huiyu.eun@samsung.com>
Mon, 22 Apr 2019 06:52:51 +0000 (06:52 +0000)
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 <huiyu.eun@samsung.com>
tct-suite-vs/Tizen.NUI.Tests/testcase/TSFontClient.cs

index cecace2..11a5824 100755 (executable)
@@ -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]