From: Kangho Hur Date: Tue, 6 Sep 2016 04:14:57 +0000 (+0900) Subject: Add Image Testcase X-Git-Tag: submit/trunk/20170823.075128~110^2~290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f16354f6a1cebdd4b4d20e920a1acbca736b1afd;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Add Image Testcase Change-Id: Ie3e026ae845a614f1dd9513ba18271a0123e530c --- diff --git a/test/ElmSharp.Test/ElmSharp.Test.csproj b/test/ElmSharp.Test/ElmSharp.Test.csproj index a517e7e..1c23408 100644 --- a/test/ElmSharp.Test/ElmSharp.Test.csproj +++ b/test/ElmSharp.Test/ElmSharp.Test.csproj @@ -57,6 +57,7 @@ + diff --git a/test/ElmSharp.Test/TC/ImageTest1.cs b/test/ElmSharp.Test/TC/ImageTest1.cs new file mode 100644 index 0000000..82ee3c2 --- /dev/null +++ b/test/ElmSharp.Test/TC/ImageTest1.cs @@ -0,0 +1,30 @@ +using System; +using ElmSharp; +using System.Collections.Generic; + +namespace ElmSharp.Test +{ + public class ImageTest1 : TestCaseBase + { + public override string TestName => "ImageTest1"; + public override string TestDescription => "To test basic operation of Image"; + + public override void Run(Window window) + { + Image image = new Image(window) + { + IsFixedAspect = false + }; + image.Load("/home/owner/res/picture.png"); + image.Clicked += (e, o) => + { + Console.WriteLine("Image has been clicked. (IsFixedAspect = {0}", image.IsFixedAspect); + image.IsFixedAspect = image.IsFixedAspect == true?false:true; + }; + + image.Show(); + image.Resize(500, 500); + image.Move(100,100); + } + } +}