예제 #1
0
        public void WebPageLoadErrorConstructor()
        {
            tlog.Debug(tag, $"WebPageLoadErrorConstructor START");

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"WebPageLoadErrorConstructor END (OK)");
        }
예제 #2
0
        public void WebViewPageLoadErrorEventArgsPageLoadError()
        {
            tlog.Debug(tag, $"WebViewPageLoadErrorEventArgsPageLoadError START");

            using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
            {
                WebPageLoadError le = new WebPageLoadError(webview.SwigCPtr.Handle, false);

                var testingTarget = new WebViewPageLoadErrorEventArgs(le);
                Assert.IsNotNull(testingTarget, "null handle");
                Assert.IsInstanceOf <WebViewPageLoadErrorEventArgs>(testingTarget, "Should return WebViewPageLoadErrorEventArgs instance.");

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

                le.Dispose();
            }

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