Assert.AreEqual(0.1f, map.FrameDelay, "Retrieved FrameDelay should be equal to set value");
}
+ [Test]
+ [Category("P1")]
+ [Description("Test LoopCount. Check whether LoopCount is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.AnimatedImageVisual.LoopCount A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void LoopCount_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ AnimatedImageVisual map = new AnimatedImageVisual();
+ List<string> list = new List<string>();
+ list.Add(image_path);
+ map.URLS = list;
+ map.LoopCount = 0.1f;
+ Assert.AreEqual(0.1f, map.LoopCount, "Retrieved LoopCount should be equal to set value");
+ }
+
[Test]
[Category("P1")]
[Description("Test URLS. Check whether URLS is readable and writable.")]
{
private static string TAG = "NUI";
private static string image_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
+ private static string gif_path = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "dog-anim.gif";
[SetUp]
public static void Init()
Assert.AreEqual(0.8f, imageView.PixelArea.W, "The PixelArea.W property of imageView is not correct here.");
}
+ [Test]
+ [Category("P1")]
+ [Description("Test Reload. Check whether the Reload works for gif.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.ImageView.Reload M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Reload_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
+ try
+ {
+ ImageView imageView = new ImageView(gif_path);
+ imageView.Reload();
+ }
+ catch (Exception e)
+ {
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Play. Check whether the Play works for gif.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.ImageView.Play M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Play_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
+ try
+ {
+ ImageView imageView = new ImageView(gif_path);
+ imageView.Play();
+ }
+ catch (Exception e)
+ {
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Pause. Check whether the Pause works for gif.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.ImageView.Pause M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Pause_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
+ try
+ {
+ ImageView imageView = new ImageView(gif_path);
+ imageView.Pause();
+ }
+ catch (Exception e)
+ {
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ }
+
+ [Test]
+ [Category("P1")]
+ [Description("Test Stop. Check whether the Stop works for gif.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.ImageView.Stop M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void Stop_CHECK_RETURN_VALUE()
+ {
+ /* TEST CODE */
+ try
+ {
+ ImageView imageView = new ImageView(gif_path);
+ imageView.Stop();
+ }
+ catch (Exception e)
+ {
+ Assert.Fail("Caught Exception" + e.ToString());
+ }
+ }
+
[Test]
[Category("P1")]
[Description("Test IsResourceReady. Test whether the IsResourceReady will return the right value.")]
Assert.AreEqual("Setting Placeholder Text", text, "Should be equals to the set value of text");
}
+ [Test]
+ [Category("P1")]
+ [Description("Test EnableShiftSelection. Check whether EnableShiftSelection is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextEditor.EnableShiftSelection A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void EnableShiftSelection_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ TextEditor textEditor = new TextEditor();
+ textEditor.EnableShiftSelection = true;
+ Assert.IsTrue(textEditor.EnableShiftSelection, "The value of textEditor.EnableShiftSelection should be true");
+ textEditor.EnableShiftSelection = false;
+ Assert.IsFalse(textEditor.EnableShiftSelection, "The value of textEditor.EnableShiftSelection should be false");
+ }
+
[Test]
[Category("P1")]
[Description("Test TextChanged.Check whether TextChanged defined in the spec is callable.")]
}
+ [Test]
+ [Category("P1")]
+ [Description("Test EnableShiftSelection. Check whether EnableShiftSelection is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextField.EnableShiftSelection A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void EnableShiftSelection_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ TextField textField = new TextField();
+ textField.EnableShiftSelection = true;
+ Assert.IsTrue(textField.EnableShiftSelection, "The value of textField.EnableShiftSelection should be true");
+ textField.EnableShiftSelection = false;
+ Assert.IsFalse(textField.EnableShiftSelection, "The value of textField.EnableShiftSelection should be false");
+ }
+
[Test]
[Category("P1")]
[Description("Test TextChanged.Check whether TextChanged defined in the spec is callable.")]
Assert.AreEqual(VerticalAlignment.Center, textLabel.VerticalAlignment, "Retrieved VerticalAlignment should be equal to set value");
}
+ [Test]
+ [Category("P1")]
+ [Description("Test VerticalLineAlignment. Check whether VerticalLineAlignment is readable and writable.")]
+ [Property("SPEC", "Tizen.NUI.BaseComponents.TextLabel.VerticalLineAlignment A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRW")]
+ [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
+ public void VerticalLineAlignment_SET_GET_VALUE()
+ {
+ /* TEST CODE */
+ TextLabel textLabel = new TextLabel();
+ textLabel.VerticalLineAlignment = VerticalLineAlignment.Center;
+ Assert.AreEqual(VerticalLineAlignment.Center, textLabel.VerticalLineAlignment, "Retrieved VerticalLineAlignment should be equal to set value");
+ }
+
[Test]
[Category("P1")]
[Description("Test TextColor. Check whether TextColor is readable and writable.")]