Ejemplo n.º 1
0
        public void WebSecurityOriginListConstructor()
        {
            tlog.Debug(tag, $"WebSecurityOriginListConstructor START");

            using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
            {
                var testingTarget = new WebSecurityOriginList(webview.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "null handle");
                Assert.IsInstanceOf <WebSecurityOriginList>(testingTarget, "Should return WebSecurityOriginList instance.");

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"WebSecurityOriginListConstructor END (OK)");
        }
Ejemplo n.º 2
0
        public void WebSecurityOriginListGetItemAtIndex()
        {
            tlog.Debug(tag, $"WebSecurityOriginListGetItemAtIndex START");

            using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
            {
                webview.LoadUrl("http://www.baidu.com");

                var testingTarget = new WebSecurityOriginList(webview.SwigCPtr.Handle, false);
                Assert.IsNotNull(testingTarget, "null handle");
                Assert.IsInstanceOf <WebSecurityOriginList>(testingTarget, "Should return WebSecurityOriginList instance.");

                var result = testingTarget.GetItemAtIndex(0);
                tlog.Debug(tag, "GetItemAtIndex : " + result);

                webview.ClearCache();
                webview.ClearCookies();

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"WebSecurityOriginListGetItemAtIndex END (OK)");
        }