3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
7 namespace Tizen.NUI.Devel.Tests
9 using tlog = Tizen.Log;
12 [Description("internal/WebView/WebHitTestResult")]
13 public class InternalWebHitTestResultTest
15 private const string tag = "NUITEST";
16 private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
18 internal class MyWebHitTestResult : WebHitTestResult
20 public MyWebHitTestResult(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
23 public void OnReleaseSwigCPtr(global::System.Runtime.InteropServices.HandleRef swigCPtr)
25 base.ReleaseSwigCPtr(swigCPtr);
32 tlog.Info(tag, "Init() is called!");
38 tlog.Info(tag, "Destroy() is called!");
43 [Description("WebHitTestResult constructor.")]
44 [Property("SPEC", "Tizen.NUI.WebHitTestResult.WebHitTestResult C")]
45 [Property("SPEC_URL", "-")]
46 [Property("CRITERIA", "CONSTR")]
47 [Property("COVPARAM", "")]
48 [Property("AUTHOR", "guowei.wang@samsung.com")]
49 public void WebHitTestResultConstructor()
51 tlog.Debug(tag, $"WebHitTestResultConstructor START");
53 using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
55 var testingTarget = new WebHitTestResult(webview.SwigCPtr.Handle, false);
56 Assert.IsNotNull(testingTarget, "null handle");
57 Assert.IsInstanceOf<WebHitTestResult>(testingTarget, "Should return WebHitTestResult instance.");
59 testingTarget.Dispose();
62 tlog.Debug(tag, $"WebHitTestResultConstructor END (OK)");