{
try
{
- _evasObject.SetClip(_window);
+ var rect = new Rectangle(_window);
+ _evasObject.SetClip(rect);
}
catch (Exception)
{
[Test]
[Category("P1")]
- [Description("Check LoadAsync(System.IO.Stream) return value")]
+ [Description("Check LoadAsync(System.Uri) return value")]
[Property("SPEC", "ElmSharp.Image.LoadAsync M")]
- [Property("COVPARAM", "string, CancellationToken")]
+ [Property("COVPARAM", "Uri, CancellationToken")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
+ [Precondition(1, "make sure the device can access to the internet")]
[Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
- public static async Task LoadAsync_File_CHECK()
+ public static async Task LoadAsync_Uri_CHECK()
{
- bool mark = await _image.LoadAsync(Program.Current.DirectoryInfo.Resource + "test.jpg");
+ bool mark = await _image.LoadAsync("http://pe.tedcdn.com/images/ted/2e306b9655267cee35e45688ace775590b820510_615x461.jpg");
Assert.IsTrue(mark);
}
[Test]
[Category("P1")]
- [Description("Check LoadAsync(System.Uri) return value")]
+ [Description("Check LoadAsync(System.IO.Stream) return value")]
[Property("SPEC", "ElmSharp.Image.LoadAsync M")]
- [Property("COVPARAM", "Uri, CancellationToken")]
+ [Property("COVPARAM", "string, CancellationToken")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "MR")]
- [Precondition(1, "make sure the device can access to the internet")]
[Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
- public static async Task LoadAsync_Uri_CHECK()
+ public static async Task LoadAsync_File_CHECK()
{
- bool mark = await _image.LoadAsync("http://pe.tedcdn.com/images/ted/2e306b9655267cee35e45688ace775590b820510_615x461.jpg");
- Assert.IsTrue(mark);
+ bool mark = await _image.LoadAsync(Program.Current.DirectoryInfo.Resource + "test.jpg");
+ Assert.IsTrue(mark, "LoadAsync method return true");
}
[Test]
DefaultBackButtonEnabled = true
};
var mark = _layout.BoxRemove("elm.text", naviFrameTemp);
- Assert.AreEqual(true, mark);
+ Assert.AreEqual(false, "BoxRemove method return " + mark);
naviFrameTemp = null;
}
public void BoxRemoveAll_CHECK()
{
var mark = _layout.BoxRemoveAll("elm.text", true);
- Assert.AreEqual(true, mark);
+ Assert.AreEqual(false, "BoxRemoveAll method return " + mark);
}
[Test]
naviFrameTemp = null;
}
}
-}
\ No newline at end of file
+}
[Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
public void IsExpanded_SET_GET()
{
+ MultiButtonEntryItem mButtonEntryItem = _mButtonEntry.Append("Append");
+ _mButtonEntry.IsExpanded = true;
+ Assert.IsTrue(_mButtonEntry.IsExpanded, "The IsExpanded should be true.");
_mButtonEntry.IsExpanded = false;
Assert.IsFalse(_mButtonEntry.IsExpanded, "The IsExpanded should be false.");
}
Assert.AreEqual(PopupOrientation.BottomRight, _popup.Orientation, "PopupOrientation.BottomRight is not equal to set value");
}
-
[Test]
[Category("P1")]
[Description("Check whether get value of ContentTextWrapType are identical with the set value or not.")]
[Property("AUTHOR", "Gu Wenxuan, wenxuan.gu@samsung.com")]
public void ContentTextWrapType_PROPERTY_SET_GET()
{
- _popup.ContentTextWrapType = WrapType.None;
- Assert.AreEqual(WrapType.None, _popup.ContentTextWrapType, "ContentTextWrapType is not equal to set value");
- }
-
- [Test]
- [Category("P1")]
- [Description("Check whether enum WrapType.Char are gettable and settable.")]
- [Property("SPEC", "ElmSharp.Popup.ContentTextWrapType A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRE")]
- [Property("AUTHOR", "Gu Wenxuan, wenxuan.gu@samsung.com")]
- public void ContentTextWrapType_GET_ENUM_CHAR()
- {
+ _popup.ContentTextWrapType = WrapType.Word;
+ Assert.AreEqual(WrapType.Word, _popup.ContentTextWrapType, "ContentTextWrapType is not equal to set value");
_popup.ContentTextWrapType = WrapType.Char;
- Assert.AreEqual(WrapType.Char, _popup.ContentTextWrapType, "WrapType.Char is not equal to set value");
+ Assert.AreEqual(WrapType.Char, _popup.ContentTextWrapType, "ContentTextWrapType is not equal to set value");
+ _popup.ContentTextWrapType = WrapType.Mixed;
+ Assert.AreEqual(WrapType.Mixed, _popup.ContentTextWrapType, "ContentTextWrapType is not equal to set value");
}
[Test]
public void Type_PROPERTY_GET()
{
_wipeEffect = new WipeEffect(WipeType.Hide, WipeDirection.Down);
- Assert.AreEqual(WipeType.Hide, _wipeEffect.Type, "Type value is not equal to WipeType.Hide.");\r
-\r
+ Assert.AreEqual(WipeType.Hide, _wipeEffect.Type, "Type value is not equal to WipeType.Hide.");
+
_wipeEffect = new WipeEffect(WipeType.Show, WipeDirection.Down);
Assert.AreEqual(WipeType.Show, _wipeEffect.Type, "Type value is not equal to WipeType.Show.");
}
[Property("CRITERIA", "PRE")]
[Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
public void Direction_PROPERTY_GET()
- {\r
+ {
_wipeEffect = new WipeEffect(WipeType.Hide, WipeDirection.Down);
- Assert.AreEqual(WipeDirection.Down, _wipeEffect.Direction, "Direction value is not equal to WipeDirection.Down.");\r
-\r
+ Assert.AreEqual(WipeDirection.Down, _wipeEffect.Direction, "Direction value is not equal to WipeDirection.Down.");
+
_wipeEffect = new WipeEffect(WipeType.Hide, WipeDirection.Left);
- Assert.AreEqual(WipeDirection.Left, _wipeEffect.Direction, "Direction value is not equal to WipeDirection.Left.");\r
-\r
+ Assert.AreEqual(WipeDirection.Left, _wipeEffect.Direction, "Direction value is not equal to WipeDirection.Left.");
+
_wipeEffect = new WipeEffect(WipeType.Hide, WipeDirection.Right);
- Assert.AreEqual(WipeDirection.Right, _wipeEffect.Direction, "Direction value is not equal to WipeDirection.Right.");\r
-\r
+ Assert.AreEqual(WipeDirection.Right, _wipeEffect.Direction, "Direction value is not equal to WipeDirection.Right.");
+
_wipeEffect = new WipeEffect(WipeType.Hide, WipeDirection.Up);
Assert.AreEqual(WipeDirection.Up, _wipeEffect.Direction, "Direction value is not equal to WipeDirection.Up.");
}