[NUI][Non-ACR] Fix ImageView TCT fail issue 46/199546/2
authorhuiyu.eun <huiyu.eun@samsung.com>
Thu, 7 Feb 2019 06:27:36 +0000 (15:27 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Wed, 13 Feb 2019 02:15:45 +0000 (11:15 +0900)
Change-Id: I2142cad786c69f93b91a4faefb0a9e4285394405
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
tct-suite-vs/Tizen.NUI.Tests/testcase/TSImageView.cs

index 861760b..fd39293 100755 (executable)
@@ -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.");