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

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

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"WebFormRepostPolicyDecisionMakerConstructor END (OK)");
        }
        public void WebViewFormRepostPolicyDecidedEventArgsFormRepostPolicyDecisionMaker()
        {
            tlog.Debug(tag, $"WebViewFormRepostPolicyDecidedEventArgsFormRepostPolicyDecisionMaker START");

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

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

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

                maker.Dispose();
            }

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