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/WebSecurityOrigin")]
13 public class InternalWebSecurityOriginTest
15 private const string tag = "NUITEST";
16 private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
17 private static string[] runtimeArgs = { "Tizen.NUI.Devel.Tests", "--enable-dali-window", "--enable-spatial-navigation" };
18 private const string USER_AGENT = "Mozilla/5.0 (SMART-TV; Linux; Tizen 6.0) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/76.0.3809.146 TV Safari/537.36";
23 tlog.Info(tag, "Init() is called!");
29 tlog.Info(tag, "Destroy() is called!");
34 [Description("WebSecurityOrigin constructor.")]
35 [Property("SPEC", "Tizen.NUI.WebSecurityOrigin.WebSecurityOrigin C")]
36 [Property("SPEC_URL", "-")]
37 [Property("CRITERIA", "CONSTR")]
38 [Property("COVPARAM", "")]
39 [Property("AUTHOR", "guowei.wang@samsung.com")]
40 public void WebSecurityOriginConstructor()
42 tlog.Debug(tag, $"WebSecurityOriginConstructor START");
44 using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
46 var testingTarget = new WebSecurityOrigin(webview.SwigCPtr.Handle, false);
47 Assert.IsNotNull(testingTarget, "null handle");
48 Assert.IsInstanceOf<WebSecurityOrigin>(testingTarget, "Should return WebSecurityOrigin instance.");
50 testingTarget.Dispose();
53 tlog.Debug(tag, $"WebSecurityOriginConstructor END (OK)");