From 374198c510aa9010cf1b4e8c237b21baed9c6779 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Thu, 7 Feb 2019 15:27:36 +0900 Subject: [PATCH] [NUI][Non-ACR] Fix ImageView TCT fail issue Change-Id: I2142cad786c69f93b91a4faefb0a9e4285394405 Signed-off-by: huiyu.eun --- tct-suite-vs/Tizen.NUI.Tests/testcase/TSImageView.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImageView.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSImageView.cs index 861760b..fd39293 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."); -- 2.7.4