public void WebConsoleMessageConstructor() { tlog.Debug(tag, $"WebConsoleMessageConstructor START"); using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai")) { var testingTarget = new WebConsoleMessage(webview.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <WebConsoleMessage>(testingTarget, "Should return WebConsoleMessage instance."); testingTarget.Dispose(); } tlog.Debug(tag, $"WebConsoleMessageConstructor END (OK)"); }
public void WebViewConsoleMessageReceivedEventArgsConsoleMessage() { tlog.Debug(tag, $"WebViewConsoleMessageReceivedEventArgsConsoleMessage START"); using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai")) { WebConsoleMessage message = new WebConsoleMessage(webview.SwigCPtr.Handle, false); var testingTarget = new WebViewConsoleMessageReceivedEventArgs(message); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <WebViewConsoleMessageReceivedEventArgs>(testingTarget, "Should return WebViewConsoleMessageReceivedEventArgs instance."); var result = testingTarget.ConsoleMessage; tlog.Debug(tag, "ConsoleMessage : " + result); message.Dispose(); } tlog.Debug(tag, $"WebViewConsoleMessageReceivedEventArgsConsoleMessage END (OK)"); }