imageView.SynchronosLoading = false;
Assert.IsFalse(imageView.SynchronosLoading, "Should be false!");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Test CropToMask. Check whether CropToMask is readable and writable with true value.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.ImageView.CropToMask A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "dongsug.song@samsung.com")]
+ public async Task CropToMask_SET_GET_TRUE_VALUE()
+ {
+ /* TEST CODE */
+ var imageView = new ImageView();
+
+ Assert.IsNotNull(imageView, "Should not be a Null : ImageView");
+ Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");
+
+ imageView.ResourceUrl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture2.jpg";
+ imageView.AlphaMaskURL = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "star-mod.png";
+ imageView.Size2D = new Size2D(500, 500);
+
+ imageView.CropToMask = true;
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.Add(imageView);
+
+ await Task.Delay(1000);
+
+ Assert.AreEqual(true, imageView.CropToMask, "Retrieved CropToMask should be equal to set value");
+
+ imageView.Unparent();
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test CropToMask. Check whether CropToMask is readable and writable with false value.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.ImageView.CropToMask A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "dongsug.song@samsung.com")]
+ public async Task CropToMask_SET_GET_FALSE_VALUE()
+ {
+ /* TEST CODE */
+ var imageView = new ImageView();
+
+ Assert.IsNotNull(imageView, "Should not be a Null : ImageView");
+ Assert.IsInstanceOf<ImageView>(imageView, "Should be an instance of : ImageView");
+
+ imageView.ResourceUrl = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture2.jpg";
+ imageView.AlphaMaskURL = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "star-mod.png";
+ imageView.Size2D = new Size2D(500, 500);
+ imageView.CropToMask = false;
+
+ Assert.IsNotNull(Window.Instance, "Should not be a Null : Window.Instance");
+ Assert.IsInstanceOf<Window>(Window.Instance, "Should be an instance of : Window.Instance");
+
+ Window.Instance.Add(imageView);
+
+ await Task.Delay(1000);
+
+ Assert.AreEqual(false, imageView.CropToMask, "Retrieved CropToMask should be equal to set value");
+
+ imageView.Unparent();
+ }
+
}
}
\ No newline at end of file