From: huiyu.eun Date: Thu, 7 Feb 2019 06:27:36 +0000 (+0900) Subject: [NUI][Non-ACR] Fix ImageView TCT fail issue X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=374198c510aa9010cf1b4e8c237b21baed9c6779;p=test%2Ftct%2Fcsharp%2Fapi.git [NUI][Non-ACR] Fix ImageView TCT fail issue Change-Id: I2142cad786c69f93b91a4faefb0a9e4285394405 Signed-off-by: huiyu.eun --- diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImageView.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImageView.cs index 861760bbd..fd39293a8 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImageView.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImageView.cs @@ -142,7 +142,7 @@ namespace Tizen.NUI.Tests PropertyMap map = new PropertyMap(); map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color)); - map.Add("Color", new PropertyValue(new Color(0.0f, 0.0f, 0.0f, 1.0f))); + map.Add(ColorVisualProperty.MixColor, new PropertyValue(new Color(0.0f, 0.0f, 0.0f, 1.0f))); imageView.ImageMap = map; @@ -151,7 +151,9 @@ namespace Tizen.NUI.Tests propertyMap.Find(Visual.Property.Type).Get(out type); Assert.AreEqual((int)Visual.Type.Color, type, "The type is not correct here."); Color color = new Color(); - (propertyMap.Find(1, "Color")).Get(color); + + (propertyMap.Find(ColorVisualProperty.MixColor)).Get(color); + Assert.AreEqual(0.0f, color.R, "The R property of color is not correct here."); Assert.AreEqual(0.0f, color.G, "The G property of color is not correct here."); Assert.AreEqual(0.0f, color.B, "The B property of color is not correct here."); @@ -173,7 +175,7 @@ namespace Tizen.NUI.Tests PropertyMap map = new PropertyMap(); map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color)); - map.Add("Color", new PropertyValue(new Color(0.0f, 0.0f, 0.0f, 1.0f))); + map.Add(ColorVisualProperty.MixColor, new PropertyValue(new Color(0.0f, 0.0f, 0.0f, 1.0f))); imageView.Image = map; @@ -182,7 +184,7 @@ namespace Tizen.NUI.Tests propertyMap.Find(Visual.Property.Type).Get(out type); Assert.AreEqual((int)Visual.Type.Color, type, "The type is not correct here."); Color color = new Color(); - (propertyMap.Find(1, "Color")).Get(color); + (propertyMap.Find(ColorVisualProperty.MixColor)).Get(color); Assert.AreEqual(0.0f, color.R, "The R property of color is not correct here."); Assert.AreEqual(0.0f, color.G, "The G property of color is not correct here."); Assert.AreEqual(0.0f, color.B, "The B property of color is not correct here.");