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/WebView")]
13 public class InternalWebViewTest
15 private const string tag = "NUITEST";
16 private string url = Tizen.Applications.Application.Current.DirectoryInfo.Resource + "picture.png";
18 private void JsCallback(string arg) { }
19 private void VideoCallback (bool arg) { }
20 private void GeolocationCallback (string arg1, string arg2) { }
21 private void PromptCallback (string arg1, string arg2) { }
23 internal class MyWebView : Tizen.NUI.BaseComponents.WebView
25 public MyWebView() : base()
28 public void OnDispose(DisposeTypes type)
37 tlog.Info(tag, "Init() is called!");
43 tlog.Info(tag, "Destroy() is called!");
48 [Description("WebView constructor.")]
49 [Property("SPEC", "Tizen.NUI.WebView.WebView C")]
50 [Property("SPEC_URL", "-")]
51 [Property("CRITERIA", "CONSTR")]
52 [Property("COVPARAM", "")]
53 [Property("AUTHOR", "guowei.wang@samsung.com")]
54 public void WebViewConstructor()
56 tlog.Debug(tag, $"WebViewConstructor START");
58 var testingTarget = new Tizen.NUI.BaseComponents.WebView();
59 Assert.IsNotNull(testingTarget, "null handle");
60 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
62 testingTarget.ClearCache();
63 testingTarget.ClearCookies();
65 testingTarget.Dispose();
66 tlog.Debug(tag, $"WebViewConstructor END (OK)");
71 [Description("WebView constructor.")]
72 [Property("SPEC", "Tizen.NUI.WebView.WebView C")]
73 [Property("SPEC_URL", "-")]
74 [Property("CRITERIA", "CONSTR")]
75 [Property("COVPARAM", "")]
76 [Property("AUTHOR", "guowei.wang@samsung.com")]
77 public void WebViewConstructorWithLocaleAndTimezone()
79 tlog.Debug(tag, $"WebViewConstructorWithLocaleAndTimezone START");
81 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
82 Assert.IsNotNull(testingTarget, "null handle");
83 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
85 testingTarget.ClearCache();
86 testingTarget.ClearCookies();
88 testingTarget.Dispose();
89 tlog.Debug(tag, $"WebViewConstructorWithLocaleAndTimezone END (OK)");
94 [Description("WebView constructor.")]
95 [Property("SPEC", "Tizen.NUI.WebView.WebView C")]
96 [Property("SPEC_URL", "-")]
97 [Property("CRITERIA", "CONSTR")]
98 [Property("COVPARAM", "")]
99 [Property("AUTHOR", "guowei.wang@samsung.com")]
100 public void WebViewConstructorWithWebView()
102 tlog.Debug(tag, $"WebViewConstructorWithWebView START");
104 Tizen.NUI.BaseComponents.WebView view = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
106 var testingTarget = new Tizen.NUI.BaseComponents.WebView(view);
107 Assert.IsNotNull(testingTarget, "null handle");
108 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
110 testingTarget.ClearCache();
111 testingTarget.ClearCookies();
114 testingTarget.Dispose();
115 tlog.Debug(tag, $"WebViewConstructorWithWebView END (OK)");
120 [Description("WebView constructor.")]
121 [Property("SPEC", "Tizen.NUI.WebView.WebView C")]
122 [Property("SPEC_URL", "-")]
123 [Property("CRITERIA", "CONSTR")]
124 [Property("COVPARAM", "")]
125 [Property("AUTHOR", "guowei.wang@samsung.com")]
126 public void WebViewConstructorWithArray()
128 tlog.Debug(tag, $"WebViewConstructorWithArray START");
130 string[] arr = new string[1] { "Tizen.NUI.Devel.Tests" };
132 var testingTarget = new Tizen.NUI.BaseComponents.WebView(arr);
133 Assert.IsNotNull(testingTarget, "null handle");
134 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
136 testingTarget.ClearCache();
137 testingTarget.ClearCookies();
139 testingTarget.Dispose();
140 tlog.Debug(tag, $"WebViewConstructorWithArray END (OK)");
145 [Description("WebView PageLoadStarted.")]
146 [Property("SPEC", "Tizen.NUI.WebView.PageLoadStarted A")]
147 [Property("SPEC_URL", "-")]
148 [Property("CRITERIA", "PRW")]
149 [Property("COVPARAM", "")]
150 [Property("AUTHOR", "guowei.wang@samsung.com")]
151 public void WebViewPageLoadStarted()
153 tlog.Debug(tag, $"WebViewPageLoadStarted START");
155 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
156 Assert.IsNotNull(testingTarget, "null handle");
157 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
159 testingTarget.PageLoadStarted += OnLoadStarted;
160 testingTarget.PageLoadStarted -= OnLoadStarted;
162 testingTarget.ClearCache();
163 testingTarget.ClearCookies();
165 testingTarget.Dispose();
166 tlog.Debug(tag, $"WebViewPageLoadStarted END (OK)");
171 [Description("WebView PageLoading.")]
172 [Property("SPEC", "Tizen.NUI.WebView.PageLoading A")]
173 [Property("SPEC_URL", "-")]
174 [Property("CRITERIA", "PRW")]
175 [Property("COVPARAM", "")]
176 [Property("AUTHOR", "guowei.wang@samsung.com")]
177 public void WebViewPageLoading()
179 tlog.Debug(tag, $"WebViewPageLoading START");
181 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
182 Assert.IsNotNull(testingTarget, "null handle");
183 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
185 testingTarget.PageLoading += OnLoading;
186 testingTarget.PageLoading -= OnLoading;
188 testingTarget.ClearCache();
189 testingTarget.ClearCookies();
191 testingTarget.Dispose();
192 tlog.Debug(tag, $"WebViewPageLoading END (OK)");
197 [Description("WebView PageLoadFinished.")]
198 [Property("SPEC", "Tizen.NUI.WebView.PageLoadFinished A")]
199 [Property("SPEC_URL", "-")]
200 [Property("CRITERIA", "PRW")]
201 [Property("COVPARAM", "")]
202 [Property("AUTHOR", "guowei.wang@samsung.com")]
203 public void WebViewPageLoadFinished()
205 tlog.Debug(tag, $"WebViewPageLoadFinished START");
207 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
208 Assert.IsNotNull(testingTarget, "null handle");
209 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
211 testingTarget.PageLoadFinished += OnLoadFinished;
212 testingTarget.PageLoadFinished -= OnLoadFinished;
214 testingTarget.ClearCache();
215 testingTarget.ClearCookies();
217 testingTarget.Dispose();
218 tlog.Debug(tag, $"WebViewPageLoadFinished END (OK)");
223 [Description("WebView PageLoadError.")]
224 [Property("SPEC", "Tizen.NUI.WebView.PageLoadError A")]
225 [Property("SPEC_URL", "-")]
226 [Property("CRITERIA", "PRW")]
227 [Property("COVPARAM", "")]
228 [Property("AUTHOR", "guowei.wang@samsung.com")]
229 public void WebViewPageLoadError()
231 tlog.Debug(tag, $"WebViewPageLoadError START");
233 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
234 Assert.IsNotNull(testingTarget, "null handle");
235 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
237 testingTarget.PageLoadError += OnLoadError;
238 testingTarget.PageLoadError -= OnLoadError;
240 testingTarget.ClearCache();
241 testingTarget.ClearCookies();
243 testingTarget.Dispose();
244 tlog.Debug(tag, $"WebViewPageLoadError END (OK)");
249 [Description("WebView ScrollEdgeReached.")]
250 [Property("SPEC", "Tizen.NUI.WebView.ScrollEdgeReached A")]
251 [Property("SPEC_URL", "-")]
252 [Property("CRITERIA", "PRW")]
253 [Property("COVPARAM", "")]
254 [Property("AUTHOR", "guowei.wang@samsung.com")]
255 public void WebViewScrollEdgeReached()
257 tlog.Debug(tag, $"WebViewScrollEdgeReached START");
259 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
260 Assert.IsNotNull(testingTarget, "null handle");
261 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
263 testingTarget.ScrollEdgeReached += OnEdgeReached;
264 testingTarget.ScrollEdgeReached -= OnEdgeReached;
266 testingTarget.ClearCache();
267 testingTarget.ClearCookies();
269 testingTarget.Dispose();
270 tlog.Debug(tag, $"WebViewPageLoadError END (OK)");
275 [Description("WebView UrlChanged.")]
276 [Property("SPEC", "Tizen.NUI.WebView.UrlChanged A")]
277 [Property("SPEC_URL", "-")]
278 [Property("CRITERIA", "PRW")]
279 [Property("COVPARAM", "")]
280 [Property("AUTHOR", "guowei.wang@samsung.com")]
281 public void WebViewUrlChanged()
283 tlog.Debug(tag, $"WebViewUrlChanged START");
285 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
286 Assert.IsNotNull(testingTarget, "null handle");
287 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
289 testingTarget.UrlChanged += OnUrlChange;
290 testingTarget.UrlChanged -= OnUrlChange;
292 testingTarget.ClearCache();
293 testingTarget.ClearCookies();
295 testingTarget.Dispose();
296 tlog.Debug(tag, $"WebViewUrlChanged END (OK)");
301 [Description("WebView FormRepostPolicyDecided.")]
302 [Property("SPEC", "Tizen.NUI.WebView.FormRepostPolicyDecided A")]
303 [Property("SPEC_URL", "-")]
304 [Property("CRITERIA", "PRW")]
305 [Property("COVPARAM", "")]
306 [Property("AUTHOR", "guowei.wang@samsung.com")]
307 public void WebViewFormRepostPolicyDecided()
309 tlog.Debug(tag, $"WebViewFormRepostPolicyDecided START");
311 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
312 Assert.IsNotNull(testingTarget, "null handle");
313 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
315 testingTarget.FormRepostPolicyDecided += OnFormRepostPolicyDecide;
316 testingTarget.FormRepostPolicyDecided -= OnFormRepostPolicyDecide;
318 testingTarget.ClearCache();
319 testingTarget.ClearCookies();
321 testingTarget.Dispose();
322 tlog.Debug(tag, $"WebViewFormRepostPolicyDecided END (OK)");
327 [Description("WebView FrameRendered.")]
328 [Property("SPEC", "Tizen.NUI.WebView.FrameRendered A")]
329 [Property("SPEC_URL", "-")]
330 [Property("CRITERIA", "PRW")]
331 [Property("COVPARAM", "")]
332 [Property("AUTHOR", "guowei.wang@samsung.com")]
333 public void WebViewFrameRendered()
335 tlog.Debug(tag, $"WebViewFrameRendered START");
337 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
338 Assert.IsNotNull(testingTarget, "null handle");
339 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
341 testingTarget.FrameRendered += OnFrameRender;
342 testingTarget.FrameRendered -= OnFrameRender;
344 testingTarget.ClearCache();
345 testingTarget.ClearCookies();
347 testingTarget.Dispose();
348 tlog.Debug(tag, $"WebViewFrameRendered END (OK)");
353 [Description("WebView ResponsePolicyDecided.")]
354 [Property("SPEC", "Tizen.NUI.WebView.ResponsePolicyDecided A")]
355 [Property("SPEC_URL", "-")]
356 [Property("CRITERIA", "PRW")]
357 [Property("COVPARAM", "")]
358 [Property("AUTHOR", "guowei.wang@samsung.com")]
359 public void WebViewResponsePolicyDecided()
361 tlog.Debug(tag, $"WebViewResponsePolicyDecided START");
363 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
364 Assert.IsNotNull(testingTarget, "null handle");
365 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
367 testingTarget.ResponsePolicyDecided += OnResponsePolicyDecide;
368 testingTarget.ResponsePolicyDecided -= OnResponsePolicyDecide;
370 testingTarget.ClearCache();
371 testingTarget.ClearCookies();
373 testingTarget.Dispose();
374 tlog.Debug(tag, $"WebViewResponsePolicyDecided END (OK)");
379 [Description("WebView CertificateConfirmed.")]
380 [Property("SPEC", "Tizen.NUI.WebView.CertificateConfirmed A")]
381 [Property("SPEC_URL", "-")]
382 [Property("CRITERIA", "PRW")]
383 [Property("COVPARAM", "")]
384 [Property("AUTHOR", "guowei.wang@samsung.com")]
385 public void WebViewCertificateConfirmed()
387 tlog.Debug(tag, $"WebViewCertificateConfirmed START");
389 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
390 Assert.IsNotNull(testingTarget, "null handle");
391 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
393 testingTarget.CertificateConfirmed += OnCertificateConfirme;
394 testingTarget.CertificateConfirmed -= OnCertificateConfirme;
396 testingTarget.ClearCache();
397 testingTarget.ClearCookies();
399 testingTarget.Dispose();
400 tlog.Debug(tag, $"WebViewCertificateConfirmed END (OK)");
405 [Description("WebView HttpRequestIntercepted.")]
406 [Property("SPEC", "Tizen.NUI.WebView.HttpRequestIntercepted A")]
407 [Property("SPEC_URL", "-")]
408 [Property("CRITERIA", "PRW")]
409 [Property("COVPARAM", "")]
410 [Property("AUTHOR", "guowei.wang@samsung.com")]
411 public void WebViewHttpRequestIntercepted()
413 tlog.Debug(tag, $"WebViewHttpRequestIntercepted START");
415 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
416 Assert.IsNotNull(testingTarget, "null handle");
417 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
419 testingTarget.HttpRequestIntercepted += OnHttpRequestIntercepte;
420 testingTarget.HttpRequestIntercepted -= OnHttpRequestIntercepte;
422 testingTarget.ClearCache();
423 testingTarget.ClearCookies();
425 testingTarget.Dispose();
426 tlog.Debug(tag, $"WebViewHttpRequestIntercepted END (OK)");
431 [Description("WebView SslCertificateChanged.")]
432 [Property("SPEC", "Tizen.NUI.WebView.SslCertificateChanged A")]
433 [Property("SPEC_URL", "-")]
434 [Property("CRITERIA", "PRW")]
435 [Property("COVPARAM", "")]
436 [Property("AUTHOR", "guowei.wang@samsung.com")]
437 public void WebViewSslCertificateChanged()
439 tlog.Debug(tag, $"WebViewSslCertificateChanged START");
441 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
442 Assert.IsNotNull(testingTarget, "null handle");
443 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
445 testingTarget.SslCertificateChanged += OnSslCertificateChange;
446 testingTarget.SslCertificateChanged -= OnSslCertificateChange;
448 testingTarget.ClearCache();
449 testingTarget.ClearCookies();
451 testingTarget.Dispose();
452 tlog.Debug(tag, $"WebViewSslCertificateChanged END (OK)");
457 [Description("WebView HttpAuthRequested.")]
458 [Property("SPEC", "Tizen.NUI.WebView.HttpAuthRequested A")]
459 [Property("SPEC_URL", "-")]
460 [Property("CRITERIA", "PRW")]
461 [Property("COVPARAM", "")]
462 [Property("AUTHOR", "guowei.wang@samsung.com")]
463 public void WebViewHttpAuthRequested()
465 tlog.Debug(tag, $"WebViewHttpAuthRequested START");
467 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
468 Assert.IsNotNull(testingTarget, "null handle");
469 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
471 testingTarget.HttpAuthRequested += OnHttpAuthRequeste;
472 testingTarget.HttpAuthRequested -= OnHttpAuthRequeste;
474 testingTarget.ClearCache();
475 testingTarget.ClearCookies();
477 testingTarget.Dispose();
478 tlog.Debug(tag, $"WebViewHttpAuthRequested END (OK)");
483 [Description("WebView ConsoleMessageReceived.")]
484 [Property("SPEC", "Tizen.NUI.WebView.ConsoleMessageReceived A")]
485 [Property("SPEC_URL", "-")]
486 [Property("CRITERIA", "PRW")]
487 [Property("COVPARAM", "")]
488 [Property("AUTHOR", "guowei.wang@samsung.com")]
489 public void WebViewConsoleMessageReceived()
491 tlog.Debug(tag, $"WebViewHttpAuthRequested START");
493 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
494 Assert.IsNotNull(testingTarget, "null handle");
495 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
497 testingTarget.ConsoleMessageReceived += OnConsoleMessageReceive;
498 testingTarget.ConsoleMessageReceived -= OnConsoleMessageReceive;
500 testingTarget.ClearCache();
501 testingTarget.ClearCookies();
503 testingTarget.Dispose();
504 tlog.Debug(tag, $"WebViewConsoleMessageReceived END (OK)");
509 [Description("WebView BackForwardList.")]
510 [Property("SPEC", "Tizen.NUI.WebView.BackForwardList A")]
511 [Property("SPEC_URL", "-")]
512 [Property("CRITERIA", "PRO")]
513 [Property("COVPARAM", "")]
514 [Property("AUTHOR", "guowei.wang@samsung.com")]
515 public void WebViewBackForwardList()
517 tlog.Debug(tag, $"WebViewBackForwardList START");
519 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
520 Assert.IsNotNull(testingTarget, "null handle");
521 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
523 var result = testingTarget.BackForwardList;
524 tlog.Debug(tag, "ForwardList : " + result);
526 testingTarget.ClearCache();
527 testingTarget.ClearCookies();
529 testingTarget.Dispose();
530 tlog.Debug(tag, $"WebViewBackForwardList END (OK)");
535 [Description("WebView Context.")]
536 [Property("SPEC", "Tizen.NUI.WebView.Context A")]
537 [Property("SPEC_URL", "-")]
538 [Property("CRITERIA", "PRO")]
539 [Property("COVPARAM", "")]
540 [Property("AUTHOR", "guowei.wang@samsung.com")]
541 public void WebViewContext()
543 tlog.Debug(tag, $"WebViewContext START");
545 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
546 Assert.IsNotNull(testingTarget, "null handle");
547 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
549 var result = testingTarget.Context;
550 tlog.Debug(tag, "Context : " + result);
552 testingTarget.ClearCache();
553 testingTarget.ClearCookies();
555 testingTarget.Dispose();
556 tlog.Debug(tag, $"WebViewContext END (OK)");
561 [Description("WebView CookieManager.")]
562 [Property("SPEC", "Tizen.NUI.WebView.CookieManager A")]
563 [Property("SPEC_URL", "-")]
564 [Property("CRITERIA", "PRO")]
565 [Property("COVPARAM", "")]
566 [Property("AUTHOR", "guowei.wang@samsung.com")]
567 public void WebViewCookieManager()
569 tlog.Debug(tag, $"WebViewCookieManager START");
571 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
572 Assert.IsNotNull(testingTarget, "null handle");
573 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
575 var result = testingTarget.CookieManager;
576 tlog.Debug(tag, "CookieManager : " + result);
578 testingTarget.ClearCache();
579 testingTarget.ClearCookies();
581 testingTarget.Dispose();
582 tlog.Debug(tag, $"WebViewCookieManager END (OK)");
587 [Description("WebView Settings.")]
588 [Property("SPEC", "Tizen.NUI.WebView.Settings A")]
589 [Property("SPEC_URL", "-")]
590 [Property("CRITERIA", "PRO")]
591 [Property("COVPARAM", "")]
592 [Property("AUTHOR", "guowei.wang@samsung.com")]
593 public void WebViewSettings()
595 tlog.Debug(tag, $"WebViewSettings START");
597 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
598 Assert.IsNotNull(testingTarget, "null handle");
599 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
601 var result = testingTarget.Settings;
602 tlog.Debug(tag, "Settings : " + result);
604 testingTarget.ClearCache();
605 testingTarget.ClearCookies();
607 testingTarget.Dispose();
608 tlog.Debug(tag, $"WebViewSettings END (OK)");
613 [Description("WebView Url.")]
614 [Property("SPEC", "Tizen.NUI.WebView.Url A")]
615 [Property("SPEC_URL", "-")]
616 [Property("CRITERIA", "PRW")]
617 [Property("COVPARAM", "")]
618 [Property("AUTHOR", "guowei.wang@samsung.com")]
619 public void WebViewUrl()
621 tlog.Debug(tag, $"WebViewUrl START");
623 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
624 Assert.IsNotNull(testingTarget, "null handle");
625 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
627 testingTarget.Url = url;
628 tlog.Debug(tag, "Url : " + testingTarget.Url);
630 testingTarget.ClearCache();
631 testingTarget.ClearCookies();
633 testingTarget.Dispose();
634 tlog.Debug(tag, $"WebViewUrl END (OK)");
639 [Description("WebView CacheModel.")]
640 [Property("SPEC", "Tizen.NUI.WebView.CacheModel A")]
641 [Property("SPEC_URL", "-")]
642 [Property("CRITERIA", "PRW")]
643 [Property("COVPARAM", "")]
644 [Property("AUTHOR", "guowei.wang@samsung.com")]
645 public void WebViewCacheModel()
647 tlog.Debug(tag, $"WebViewCacheModel START");
649 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
650 Assert.IsNotNull(testingTarget, "null handle");
651 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
653 testingTarget.CacheModel = Tizen.NUI.CacheModel.DocumentViewer;
654 tlog.Debug(tag, "CacheModel : " + testingTarget.CacheModel);
656 testingTarget.CacheModel = Tizen.NUI.CacheModel.DocumentBrowser;
657 tlog.Debug(tag, "CacheModel : " + testingTarget.CacheModel);
659 testingTarget.CacheModel = Tizen.NUI.CacheModel.PrimaryWebBrowser;
660 tlog.Debug(tag, "CacheModel : " + testingTarget.CacheModel);
662 testingTarget.ClearCache();
663 testingTarget.ClearCookies();
665 testingTarget.Dispose();
666 tlog.Debug(tag, $"WebViewCacheModel END (OK)");
671 [Description("WebView CookieAcceptPolicy.")]
672 [Property("SPEC", "Tizen.NUI.WebView.CookieAcceptPolicy A")]
673 [Property("SPEC_URL", "-")]
674 [Property("CRITERIA", "PRW")]
675 [Property("COVPARAM", "")]
676 [Property("AUTHOR", "guowei.wang@samsung.com")]
677 public void WebViewCookieAcceptPolicy()
679 tlog.Debug(tag, $"WebViewCookieAcceptPolicy START");
681 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
682 Assert.IsNotNull(testingTarget, "null handle");
683 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
685 testingTarget.CookieAcceptPolicy = (CookieAcceptPolicy)Tizen.NUI.WebCookieManager.CookieAcceptPolicyType.NoThirdParty;
686 tlog.Debug(tag, "CookieAcceptPolicy : " + testingTarget.CookieAcceptPolicy);
688 testingTarget.CookieAcceptPolicy = (CookieAcceptPolicy)Tizen.NUI.WebCookieManager.CookieAcceptPolicyType.Always;
689 tlog.Debug(tag, "CookieAcceptPolicy : " + testingTarget.CookieAcceptPolicy);
691 testingTarget.CookieAcceptPolicy = (CookieAcceptPolicy)Tizen.NUI.WebCookieManager.CookieAcceptPolicyType.Never;
692 tlog.Debug(tag, "CookieAcceptPolicy : " + testingTarget.CookieAcceptPolicy);
694 testingTarget.ClearCache();
695 testingTarget.ClearCookies();
697 testingTarget.Dispose();
698 tlog.Debug(tag, $"WebViewCookieAcceptPolicy END (OK)");
703 [Description("WebView UserAgent.")]
704 [Property("SPEC", "Tizen.NUI.WebView.UserAgent A")]
705 [Property("SPEC_URL", "-")]
706 [Property("CRITERIA", "PRW")]
707 [Property("COVPARAM", "")]
708 [Property("AUTHOR", "guowei.wang@samsung.com")]
709 public void WebViewUserAgent()
711 tlog.Debug(tag, $"WebViewUserAgent START");
713 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
714 Assert.IsNotNull(testingTarget, "null handle");
715 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
717 testingTarget.UserAgent = "Mozilla/5.0 (Linux; Android 4.2.1; M040 Build/JOP40D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.59 Mobile Safari/537.36";
718 tlog.Debug(tag, "UserAgent : " + testingTarget.UserAgent);
720 testingTarget.ClearCache();
721 testingTarget.ClearCookies();
723 testingTarget.Dispose();
724 tlog.Debug(tag, $"WebViewUserAgent END (OK)");
729 [Description("WebView EnableJavaScript.")]
730 [Property("SPEC", "Tizen.NUI.WebView.EnableJavaScript A")]
731 [Property("SPEC_URL", "-")]
732 [Property("CRITERIA", "PRW")]
733 [Property("COVPARAM", "")]
734 [Property("AUTHOR", "guowei.wang@samsung.com")]
735 public void WebViewEnableJavaScript()
737 tlog.Debug(tag, $"WebViewEnableJavaScript START");
739 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
740 Assert.IsNotNull(testingTarget, "null handle");
741 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
743 testingTarget.EnableJavaScript = true;
744 tlog.Debug(tag, "EnableJavaScript : " + testingTarget.EnableJavaScript);
746 testingTarget.EnableJavaScript = false;
747 tlog.Debug(tag, "EnableJavaScript : " + testingTarget.EnableJavaScript);
749 testingTarget.ClearCache();
750 testingTarget.ClearCookies();
752 testingTarget.Dispose();
753 tlog.Debug(tag, $"WebViewEnableJavaScript END (OK)");
758 [Description("WebView LoadImagesAutomatically.")]
759 [Property("SPEC", "Tizen.NUI.WebView.LoadImagesAutomatically A")]
760 [Property("SPEC_URL", "-")]
761 [Property("CRITERIA", "PRW")]
762 [Property("COVPARAM", "")]
763 [Property("AUTHOR", "guowei.wang@samsung.com")]
764 public void WebViewLoadImagesAutomatically()
766 tlog.Debug(tag, $"WebViewLoadImagesAutomatically START");
768 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
769 Assert.IsNotNull(testingTarget, "null handle");
770 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
772 testingTarget.LoadImagesAutomatically = true;
773 tlog.Debug(tag, "LoadImagesAutomatically : " + testingTarget.LoadImagesAutomatically);
775 testingTarget.LoadImagesAutomatically = false;
776 tlog.Debug(tag, "LoadImagesAutomatically : " + testingTarget.LoadImagesAutomatically);
778 testingTarget.ClearCache();
779 testingTarget.ClearCookies();
781 testingTarget.Dispose();
782 tlog.Debug(tag, $"WebViewLoadImagesAutomatically END (OK)");
787 [Description("WebView DefaultTextEncodingName.")]
788 [Property("SPEC", "Tizen.NUI.WebView.DefaultTextEncodingName A")]
789 [Property("SPEC_URL", "-")]
790 [Property("CRITERIA", "PRW")]
791 [Property("COVPARAM", "")]
792 [Property("AUTHOR", "guowei.wang@samsung.com")]
793 public void WebViewDefaultTextEncodingName()
795 tlog.Debug(tag, $"WebViewDefaultTextEncodingName START");
797 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
798 Assert.IsNotNull(testingTarget, "null handle");
799 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
801 var result = testingTarget.DefaultTextEncodingName;
802 tlog.Debug(tag, "DefaultTextEncodingName : " + result);
804 testingTarget.DefaultTextEncodingName = "gbk";
805 tlog.Debug(tag, "DefaultTextEncodingName : " + result);
807 testingTarget.ClearCache();
808 testingTarget.ClearCookies();
810 testingTarget.Dispose();
811 tlog.Debug(tag, $"WebViewDefaultTextEncodingName END (OK)");
816 [Description("WebView DefaultFontSize.")]
817 [Property("SPEC", "Tizen.NUI.WebView.DefaultFontSize A")]
818 [Property("SPEC_URL", "-")]
819 [Property("CRITERIA", "PRW")]
820 [Property("COVPARAM", "")]
821 [Property("AUTHOR", "guowei.wang@samsung.com")]
822 public void WebViewDefaultFontSize()
824 tlog.Debug(tag, $"WebViewDefaultFontSize START");
826 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
827 Assert.IsNotNull(testingTarget, "null handle");
828 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
830 var result = testingTarget.DefaultFontSize;
831 tlog.Debug(tag, "DefaultFontSize : " + result);
833 testingTarget.DefaultFontSize = 32;
834 tlog.Debug(tag, "DefaultFontSize : " + result);
836 testingTarget.ClearCache();
837 testingTarget.ClearCookies();
839 testingTarget.Dispose();
840 tlog.Debug(tag, $"WebViewDefaultFontSize END (OK)");
845 [Description("WebView ScrollPosition.")]
846 [Property("SPEC", "Tizen.NUI.WebView.ScrollPosition A")]
847 [Property("SPEC_URL", "-")]
848 [Property("CRITERIA", "PRW")]
849 [Property("COVPARAM", "")]
850 [Property("AUTHOR", "guowei.wang@samsung.com")]
851 public void WebViewScrollPosition()
853 tlog.Debug(tag, $"WebViewScrollPosition START");
855 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
856 Assert.IsNotNull(testingTarget, "null handle");
857 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
859 testingTarget.ScrollPosition = new Position(0.2f, 0.1f);
860 tlog.Debug(tag, "ScrollPositionX : " + testingTarget.ScrollPosition.X);
861 tlog.Debug(tag, "ScrollPositionY : " + testingTarget.ScrollPosition.Y);
863 testingTarget.ClearCache();
864 testingTarget.ClearCookies();
866 testingTarget.Dispose();
867 tlog.Debug(tag, $"WebViewScrollPosition END (OK)");
872 [Description("WebView ScrollSize.")]
873 [Property("SPEC", "Tizen.NUI.WebView.ScrollSize A")]
874 [Property("SPEC_URL", "-")]
875 [Property("CRITERIA", "PRO")]
876 [Property("COVPARAM", "")]
877 [Property("AUTHOR", "guowei.wang@samsung.com")]
878 public void WebViewScrollSize()
880 tlog.Debug(tag, $"WebViewScrollSize START");
882 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
883 Assert.IsNotNull(testingTarget, "null handle");
884 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
886 tlog.Debug(tag, "Width : " + testingTarget.ScrollSize.Width);
887 tlog.Debug(tag, "Height : " + testingTarget.ScrollSize.Height);
889 testingTarget.ClearCache();
890 testingTarget.ClearCookies();
892 testingTarget.Dispose();
893 tlog.Debug(tag, $"WebViewScrollSize END (OK)");
898 [Description("WebView ContentSize.")]
899 [Property("SPEC", "Tizen.NUI.WebView.ContentSize A")]
900 [Property("SPEC_URL", "-")]
901 [Property("CRITERIA", "PRO")]
902 [Property("COVPARAM", "")]
903 [Property("AUTHOR", "guowei.wang@samsung.com")]
904 public void WebViewContentSize()
906 tlog.Debug(tag, $"WebViewContentSize START");
908 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
909 Assert.IsNotNull(testingTarget, "null handle");
910 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
912 tlog.Debug(tag, "Width : " + testingTarget.ContentSize.Width);
913 tlog.Debug(tag, "Height : " + testingTarget.ContentSize.Height);
915 testingTarget.ClearCache();
916 testingTarget.ClearCookies();
918 testingTarget.Dispose();
919 tlog.Debug(tag, $"WebViewContentSize END (OK)");
924 [Description("WebView VideoHoleEnabled.")]
925 [Property("SPEC", "Tizen.NUI.WebView.VideoHoleEnabled A")]
926 [Property("SPEC_URL", "-")]
927 [Property("CRITERIA", "PRW")]
928 [Property("COVPARAM", "")]
929 [Property("AUTHOR", "guowei.wang@samsung.com")]
930 public void WebViewVideoHoleEnabled()
932 tlog.Debug(tag, $"WebViewVideoHoleEnabled START");
934 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
935 Assert.IsNotNull(testingTarget, "null handle");
936 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
938 testingTarget.VideoHoleEnabled = true;
939 tlog.Debug(tag, "VideoHoleEnabled : " + testingTarget.VideoHoleEnabled);
941 testingTarget.VideoHoleEnabled = false;
942 tlog.Debug(tag, "VideoHoleEnabled : " + testingTarget.VideoHoleEnabled);
944 testingTarget.ClearCache();
945 testingTarget.ClearCookies();
947 testingTarget.Dispose();
948 tlog.Debug(tag, $"WebViewVideoHoleEnabled END (OK)");
953 [Description("WebView MouseEventsEnabled.")]
954 [Property("SPEC", "Tizen.NUI.WebView.MouseEventsEnabled A")]
955 [Property("SPEC_URL", "-")]
956 [Property("CRITERIA", "PRW")]
957 [Property("COVPARAM", "")]
958 [Property("AUTHOR", "guowei.wang@samsung.com")]
959 public void WebViewMouseEventsEnabled()
961 tlog.Debug(tag, $"WebViewMouseEventsEnabled START");
963 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
964 Assert.IsNotNull(testingTarget, "null handle");
965 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
967 testingTarget.MouseEventsEnabled = true;
968 tlog.Debug(tag, "MouseEventsEnabled : " + testingTarget.MouseEventsEnabled);
970 testingTarget.MouseEventsEnabled = false;
971 tlog.Debug(tag, "MouseEventsEnabled : " + testingTarget.MouseEventsEnabled);
973 testingTarget.ClearCache();
974 testingTarget.ClearCookies();
976 testingTarget.Dispose();
977 tlog.Debug(tag, $"WebViewMouseEventsEnabled END (OK)");
982 [Description("WebView KeyEventsEnabled.")]
983 [Property("SPEC", "Tizen.NUI.WebView.KeyEventsEnabled A")]
984 [Property("SPEC_URL", "-")]
985 [Property("CRITERIA", "PRW")]
986 [Property("COVPARAM", "")]
987 [Property("AUTHOR", "guowei.wang@samsung.com")]
988 public void WebViewKeyEventsEnabled()
990 tlog.Debug(tag, $"WebViewKeyEventsEnabled START");
992 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
993 Assert.IsNotNull(testingTarget, "null handle");
994 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
996 testingTarget.KeyEventsEnabled = true;
997 tlog.Debug(tag, "KeyEventsEnabled : " + testingTarget.KeyEventsEnabled);
999 testingTarget.KeyEventsEnabled = false;
1000 tlog.Debug(tag, "KeyEventsEnabled : " + testingTarget.KeyEventsEnabled);
1002 testingTarget.ClearCache();
1003 testingTarget.ClearCookies();
1005 testingTarget.Dispose();
1006 tlog.Debug(tag, $"WebViewKeyEventsEnabled END (OK)");
1011 [Description("WebView ContentBackgroundColor.")]
1012 [Property("SPEC", "Tizen.NUI.WebView.ContentBackgroundColor A")]
1013 [Property("SPEC_URL", "-")]
1014 [Property("CRITERIA", "PRW")]
1015 [Property("COVPARAM", "")]
1016 [Property("AUTHOR", "guowei.wang@samsung.com")]
1017 public void WebViewContentBackgroundColor()
1019 tlog.Debug(tag, $"WebViewContentBackgroundColor START");
1021 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1022 Assert.IsNotNull(testingTarget, "null handle");
1023 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1025 testingTarget.ContentBackgroundColor = Color.Cyan;
1026 tlog.Debug(tag, "ContentBackgroundColor : " + testingTarget.ContentBackgroundColor);
1028 testingTarget.ClearCache();
1029 testingTarget.ClearCookies();
1031 testingTarget.Dispose();
1032 tlog.Debug(tag, $"WebViewContentBackgroundColor END (OK)");
1037 [Description("WebView TilesClearedWhenHidden.")]
1038 [Property("SPEC", "Tizen.NUI.WebView.TilesClearedWhenHidden A")]
1039 [Property("SPEC_URL", "-")]
1040 [Property("CRITERIA", "PRW")]
1041 [Property("COVPARAM", "")]
1042 [Property("AUTHOR", "guowei.wang@samsung.com")]
1043 public void WebViewTilesClearedWhenHidden()
1045 tlog.Debug(tag, $"WebViewTilesClearedWhenHidden START");
1047 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1048 Assert.IsNotNull(testingTarget, "null handle");
1049 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1051 testingTarget.TilesClearedWhenHidden = true;
1052 tlog.Debug(tag, "TilesClearedWhenHidden : " + testingTarget.TilesClearedWhenHidden);
1054 testingTarget.TilesClearedWhenHidden = false;
1055 tlog.Debug(tag, "TilesClearedWhenHidden : " + testingTarget.TilesClearedWhenHidden);
1057 testingTarget.ClearCache();
1058 testingTarget.ClearCookies();
1060 testingTarget.Dispose();
1061 tlog.Debug(tag, $"WebViewTilesClearedWhenHidden END (OK)");
1066 [Description("WebView TileCoverAreaMultiplier.")]
1067 [Property("SPEC", "Tizen.NUI.WebView.TileCoverAreaMultiplier A")]
1068 [Property("SPEC_URL", "-")]
1069 [Property("CRITERIA", "PRW")]
1070 [Property("COVPARAM", "")]
1071 [Property("AUTHOR", "guowei.wang@samsung.com")]
1072 public void WebViewTileCoverAreaMultiplier()
1074 tlog.Debug(tag, $"WebViewTileCoverAreaMultiplier START");
1076 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1077 Assert.IsNotNull(testingTarget, "null handle");
1078 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1080 testingTarget.TileCoverAreaMultiplier = 0.3f;
1081 tlog.Debug(tag, "TileCoverAreaMultiplier : " + testingTarget.TileCoverAreaMultiplier);
1083 testingTarget.ClearCache();
1084 testingTarget.ClearCookies();
1086 testingTarget.Dispose();
1087 tlog.Debug(tag, $"WebViewTileCoverAreaMultiplier END (OK)");
1092 [Description("WebView CursorEnabledByClient.")]
1093 [Property("SPEC", "Tizen.NUI.WebView.CursorEnabledByClient A")]
1094 [Property("SPEC_URL", "-")]
1095 [Property("CRITERIA", "PRW")]
1096 [Property("COVPARAM", "")]
1097 [Property("AUTHOR", "guowei.wang@samsung.com")]
1098 public void WebViewCursorEnabledByClient()
1100 tlog.Debug(tag, $"WebViewCursorEnabledByClient START");
1102 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1103 Assert.IsNotNull(testingTarget, "null handle");
1104 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1106 testingTarget.CursorEnabledByClient = true;
1107 tlog.Debug(tag, "CursorEnabledByClient : " + testingTarget.CursorEnabledByClient);
1109 testingTarget.CursorEnabledByClient = false;
1110 tlog.Debug(tag, "CursorEnabledByClient : " + testingTarget.CursorEnabledByClient);
1112 testingTarget.ClearCache();
1113 testingTarget.ClearCookies();
1115 testingTarget.Dispose();
1116 tlog.Debug(tag, $"WebViewCursorEnabledByClient END (OK)");
1121 [Description("WebView SelectedText.")]
1122 [Property("SPEC", "Tizen.NUI.WebView.SelectedText A")]
1123 [Property("SPEC_URL", "-")]
1124 [Property("CRITERIA", "PRO")]
1125 [Property("COVPARAM", "")]
1126 [Property("AUTHOR", "guowei.wang@samsung.com")]
1127 public void WebViewSelectedText()
1129 tlog.Debug(tag, $"WebViewSelectedText START");
1131 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1132 Assert.IsNotNull(testingTarget, "null handle");
1133 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1135 tlog.Debug(tag, "SelectedText : " + testingTarget.SelectedText);
1137 testingTarget.ClearCache();
1138 testingTarget.ClearCookies();
1140 testingTarget.Dispose();
1141 tlog.Debug(tag, $"WebViewSelectedText END (OK)");
1146 [Description("WebView Title.")]
1147 [Property("SPEC", "Tizen.NUI.WebView.Title A")]
1148 [Property("SPEC_URL", "-")]
1149 [Property("CRITERIA", "PRO")]
1150 [Property("COVPARAM", "")]
1151 [Property("AUTHOR", "guowei.wang@samsung.com")]
1152 public void WebViewTitle()
1154 tlog.Debug(tag, $"WebViewTitle START");
1156 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1157 Assert.IsNotNull(testingTarget, "null handle");
1158 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1160 tlog.Debug(tag, "Title : " + testingTarget.Title);
1162 testingTarget.ClearCache();
1163 testingTarget.ClearCookies();
1165 testingTarget.Dispose();
1166 tlog.Debug(tag, $"WebViewTitle END (OK)");
1171 [Description("WebView Favicon.")]
1172 [Property("SPEC", "Tizen.NUI.WebView.Favicon A")]
1173 [Property("SPEC_URL", "-")]
1174 [Property("CRITERIA", "PRO")]
1175 [Property("COVPARAM", "")]
1176 [Property("AUTHOR", "guowei.wang@samsung.com")]
1177 public void WebViewFavicon()
1179 tlog.Debug(tag, $"WebViewFavicon START");
1181 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1182 Assert.IsNotNull(testingTarget, "null handle");
1183 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1185 tlog.Debug(tag, "Favicon : " + testingTarget.Favicon);
1187 testingTarget.ClearCache();
1188 testingTarget.ClearCookies();
1190 testingTarget.Dispose();
1191 tlog.Debug(tag, $"WebViewFavicon END (OK)");
1196 [Description("WebView PageZoomFactor.")]
1197 [Property("SPEC", "Tizen.NUI.WebView.PageZoomFactor A")]
1198 [Property("SPEC_URL", "-")]
1199 [Property("CRITERIA", "PRW")]
1200 [Property("COVPARAM", "")]
1201 [Property("AUTHOR", "guowei.wang@samsung.com")]
1202 public void WebViewPageZoomFactor()
1204 tlog.Debug(tag, $"WebViewPageZoomFactor START");
1206 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1207 Assert.IsNotNull(testingTarget, "null handle");
1208 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1210 testingTarget.PageZoomFactor = 0.3f;
1211 tlog.Debug(tag, "PageZoomFactor : " + testingTarget.PageZoomFactor);
1213 testingTarget.ClearCache();
1214 testingTarget.ClearCookies();
1216 testingTarget.Dispose();
1217 tlog.Debug(tag, $"WebViewPageZoomFactor END (OK)");
1222 [Description("WebView TextZoomFactor.")]
1223 [Property("SPEC", "Tizen.NUI.WebView.TextZoomFactor A")]
1224 [Property("SPEC_URL", "-")]
1225 [Property("CRITERIA", "PRW")]
1226 [Property("COVPARAM", "")]
1227 [Property("AUTHOR", "guowei.wang@samsung.com")]
1228 public void WebViewTextZoomFactor()
1230 tlog.Debug(tag, $"WebViewTextZoomFactor START");
1232 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1233 Assert.IsNotNull(testingTarget, "null handle");
1234 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1236 testingTarget.TextZoomFactor = 0.2f;
1237 tlog.Debug(tag, "TextZoomFactor : " + testingTarget.TextZoomFactor);
1239 testingTarget.ClearCache();
1240 testingTarget.ClearCookies();
1242 testingTarget.Dispose();
1243 tlog.Debug(tag, $"WebViewTextZoomFactor END (OK)");
1248 [Description("WebView LoadProgressPercentage.")]
1249 [Property("SPEC", "Tizen.NUI.WebView.LoadProgressPercentage A")]
1250 [Property("SPEC_URL", "-")]
1251 [Property("CRITERIA", "PRO")]
1252 [Property("COVPARAM", "")]
1253 [Property("AUTHOR", "guowei.wang@samsung.com")]
1254 public void WebViewLoadProgressPercentage()
1256 tlog.Debug(tag, $"WebViewLoadProgressPercentage START");
1258 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1259 Assert.IsNotNull(testingTarget, "null handle");
1260 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1262 tlog.Debug(tag, "LoadProgressPercentage : " + testingTarget.LoadProgressPercentage);
1264 testingTarget.ClearCache();
1265 testingTarget.ClearCookies();
1267 testingTarget.Dispose();
1268 tlog.Debug(tag, $"WebViewLoadProgressPercentage END (OK)");
1273 [Description("WebView LoadUrl.")]
1274 [Property("SPEC", "Tizen.NUI.WebView.LoadUrl M")]
1275 [Property("SPEC_URL", "-")]
1276 [Property("CRITERIA", "MR")]
1277 [Property("COVPARAM", "")]
1278 [Property("AUTHOR", "guowei.wang@samsung.com")]
1279 public void WebViewLoadUrl()
1281 tlog.Debug(tag, $"WebViewLoadUrl START");
1283 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1284 Assert.IsNotNull(testingTarget, "null handle");
1285 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1289 testingTarget.LoadUrl(url);
1293 tlog.Debug(tag, e.Message.ToString());
1294 Assert.Fail("Caught Exception : Failed!");
1297 testingTarget.ClearCache();
1298 testingTarget.ClearCookies();
1299 testingTarget.Dispose();
1300 tlog.Debug(tag, $"WebViewLoadUrl END (OK)");
1305 [Description("WebView LoadHtmlString.")]
1306 [Property("SPEC", "Tizen.NUI.WebView.LoadHtmlString M")]
1307 [Property("SPEC_URL", "-")]
1308 [Property("CRITERIA", "MR")]
1309 [Property("COVPARAM", "")]
1310 [Property("AUTHOR", "guowei.wang@samsung.com")]
1311 public void WebViewLoadHtmlString()
1313 tlog.Debug(tag, $"WebViewLoadHtmlString START");
1315 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1316 Assert.IsNotNull(testingTarget, "null handle");
1317 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1321 testingTarget.LoadHtmlString("<html><head lang=\"en\"></head></html>");
1325 tlog.Debug(tag, e.Message.ToString());
1326 Assert.Fail("Caught Exception : Failed!");
1329 testingTarget.ClearCache();
1330 testingTarget.ClearCookies();
1331 testingTarget.Dispose();
1332 tlog.Debug(tag, $"WebViewLoadHtmlString END (OK)");
1337 //[Description("WebView LoadHtmlStringOverrideCurrentEntry.")]
1338 //[Property("SPEC", "Tizen.NUI.WebView.LoadHtmlStringOverrideCurrentEntry M")]
1339 //[Property("SPEC_URL", "-")]
1340 //[Property("CRITERIA", "MR")]
1341 //[Property("COVPARAM", "")]
1342 //[Property("AUTHOR", "guowei.wang@samsung.com")]
1343 //public void WebViewLoadHtmlStringOverrideCurrentEntry()
1345 // tlog.Debug(tag, $"WebViewLoadHtmlStringOverrideCurrentEntry START");
1347 // var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1348 // Assert.IsNotNull(testingTarget, "null handle");
1349 // Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1353 // testingTarget.LoadHtmlStringOverrideCurrentEntry("<html><head lang=\"en\"></head></html>", "http://www.runoob.com/jsref/prop-doc-baseuri.html", "");
1355 // catch (Exception e)
1357 // tlog.Debug(tag, e.Message.ToString());
1358 // Assert.Fail("Caught Exception : Failed!");
1361 // testingTarget.ClearCache();
1362 // testingTarget.ClearCookies();
1363 // testingTarget.Dispose();
1364 // tlog.Debug(tag, $"WebViewLoadHtmlStringOverrideCurrentEntry END (OK)");
1369 [Description("WebView LoadContents.")]
1370 [Property("SPEC", "Tizen.NUI.WebView.LoadContents M")]
1371 [Property("SPEC_URL", "-")]
1372 [Property("CRITERIA", "MR")]
1373 [Property("COVPARAM", "")]
1374 [Property("AUTHOR", "guowei.wang@samsung.com")]
1375 public void WebViewLoadContents()
1377 tlog.Debug(tag, $"WebViewLoadContents START");
1379 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1380 Assert.IsNotNull(testingTarget, "null handle");
1381 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1385 testingTarget.LoadContents("body", 18, " ", "gbk", "http://www.runoob.com/jsref/prop-doc-baseuri.html");
1389 tlog.Debug(tag, e.Message.ToString());
1390 Assert.Fail("Caught Exception : Failed!");
1393 testingTarget.ClearCache();
1394 testingTarget.ClearCookies();
1395 testingTarget.Dispose();
1396 tlog.Debug(tag, $"WebViewLoadContents END (OK)");
1401 [Description("WebView Reload.")]
1402 [Property("SPEC", "Tizen.NUI.WebView.Reload M")]
1403 [Property("SPEC_URL", "-")]
1404 [Property("CRITERIA", "MR")]
1405 [Property("COVPARAM", "")]
1406 [Property("AUTHOR", "guowei.wang@samsung.com")]
1407 public void WebViewReload()
1409 tlog.Debug(tag, $"WebViewReload START");
1411 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1412 Assert.IsNotNull(testingTarget, "null handle");
1413 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1417 testingTarget.Reload();
1421 tlog.Debug(tag, e.Message.ToString());
1422 Assert.Fail("Caught Exception : Failed!");
1425 testingTarget.ClearCache();
1426 testingTarget.ClearCookies();
1428 testingTarget.Dispose();
1429 tlog.Debug(tag, $"WebViewReload END (OK)");
1434 [Description("WebView ReloadWithoutCache.")]
1435 [Property("SPEC", "Tizen.NUI.WebView.ReloadWithoutCache M")]
1436 [Property("SPEC_URL", "-")]
1437 [Property("CRITERIA", "MR")]
1438 [Property("COVPARAM", "")]
1439 [Property("AUTHOR", "guowei.wang@samsung.com")]
1440 public void WebViewReloadWithoutCache()
1442 tlog.Debug(tag, $"WebViewReloadWithoutCache START");
1444 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1445 Assert.IsNotNull(testingTarget, "null handle");
1446 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1450 testingTarget.ReloadWithoutCache();
1454 tlog.Debug(tag, e.Message.ToString());
1455 Assert.Fail("Caught Exception : Failed!");
1458 testingTarget.ClearCache();
1459 testingTarget.ClearCookies();
1461 testingTarget.Dispose();
1462 tlog.Debug(tag, $"WebViewReloadWithoutCache END (OK)");
1467 [Description("WebView StopLoading.")]
1468 [Property("SPEC", "Tizen.NUI.WebView.StopLoading M")]
1469 [Property("SPEC_URL", "-")]
1470 [Property("CRITERIA", "MR")]
1471 [Property("COVPARAM", "")]
1472 [Property("AUTHOR", "guowei.wang@samsung.com")]
1473 public void WebViewStopLoading()
1475 tlog.Debug(tag, $"WebViewStopLoading START");
1477 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1478 Assert.IsNotNull(testingTarget, "null handle");
1479 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1483 testingTarget.StopLoading();
1487 tlog.Debug(tag, e.Message.ToString());
1488 Assert.Fail("Caught Exception : Failed!");
1491 testingTarget.ClearCache();
1492 testingTarget.ClearCookies();
1494 testingTarget.Dispose();
1495 tlog.Debug(tag, $"WebViewStopLoading END (OK)");
1500 [Description("WebView Suspend.")]
1501 [Property("SPEC", "Tizen.NUI.WebView.Suspend M")]
1502 [Property("SPEC_URL", "-")]
1503 [Property("CRITERIA", "MR")]
1504 [Property("COVPARAM", "")]
1505 [Property("AUTHOR", "guowei.wang@samsung.com")]
1506 public void WebViewSuspend()
1508 tlog.Debug(tag, $"WebViewSuspend START");
1510 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1511 Assert.IsNotNull(testingTarget, "null handle");
1512 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1516 testingTarget.Suspend();
1517 testingTarget.Resume();
1521 tlog.Debug(tag, e.Message.ToString());
1522 Assert.Fail("Caught Exception : Failed!");
1525 testingTarget.ClearCache();
1526 testingTarget.ClearCookies();
1528 testingTarget.Dispose();
1529 tlog.Debug(tag, $"WebViewSuspend END (OK)");
1534 [Description("WebView SuspendNetworkLoading.")]
1535 [Property("SPEC", "Tizen.NUI.WebView.SuspendNetworkLoading M")]
1536 [Property("SPEC_URL", "-")]
1537 [Property("CRITERIA", "MR")]
1538 [Property("COVPARAM", "")]
1539 [Property("AUTHOR", "guowei.wang@samsung.com")]
1540 public void WebViewSuspendNetworkLoading()
1542 tlog.Debug(tag, $"WebViewSuspendNetworkLoading START");
1544 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1545 Assert.IsNotNull(testingTarget, "null handle");
1546 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1550 testingTarget.SuspendNetworkLoading();
1551 testingTarget.ResumeNetworkLoading();
1555 tlog.Debug(tag, e.Message.ToString());
1556 Assert.Fail("Caught Exception : Failed!");
1559 testingTarget.ClearCache();
1560 testingTarget.ClearCookies();
1562 testingTarget.Dispose();
1563 tlog.Debug(tag, $"WebViewSuspendNetworkLoading END (OK)");
1568 [Description("WebView AddCustomHeader.")]
1569 [Property("SPEC", "Tizen.NUI.WebView.AddCustomHeader M")]
1570 [Property("SPEC_URL", "-")]
1571 [Property("CRITERIA", "MR")]
1572 [Property("COVPARAM", "")]
1573 [Property("AUTHOR", "guowei.wang@samsung.com")]
1574 public void WebViewAddCustomHeader()
1576 tlog.Debug(tag, $"WebViewAddCustomHeader START");
1578 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1579 Assert.IsNotNull(testingTarget, "null handle");
1580 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1582 var result = testingTarget.AddCustomHeader("customHeader_title", "font-size: 32rpx");
1583 tlog.Debug(tag, "AddCustomHeader : " + result);
1585 result = testingTarget.RemoveCustomHeader("customHeader_title");
1586 tlog.Debug(tag, "RemoveCustomHeader : " + result);
1588 testingTarget.ClearCache();
1589 testingTarget.ClearCookies();
1591 testingTarget.Dispose();
1592 tlog.Debug(tag, $"WebViewAddCustomHeader END (OK)");
1597 //[Description("WebView StartInspectorServer.")]
1598 //[Property("SPEC", "Tizen.NUI.WebView.StartInspectorServer M")]
1599 //[Property("SPEC_URL", "-")]
1600 //[Property("CRITERIA", "MR")]
1601 //[Property("COVPARAM", "")]
1602 //[Property("AUTHOR", "guowei.wang@samsung.com")]
1603 //public void WebViewStartInspectorServer()
1605 // tlog.Debug(tag, $"WebViewStartInspectorServer START");
1607 // var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1608 // Assert.IsNotNull(testingTarget, "null handle");
1609 // Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1611 // testingTarget.LoadUrl("https://www.cnblogs.com/softidea/p/5745369.html");
1613 // var startValue = testingTarget.StartInspectorServer(5678);
1614 // tlog.Debug(tag, "StartInspectorServer : " + startValue);
1616 // var stopValue = testingTarget.StopInspectorServer();
1617 // tlog.Debug(tag, "StopInspectorServer : " + stopValue);
1619 // testingTarget.ClearCache();
1620 // testingTarget.ClearCookies();
1622 // testingTarget.Dispose();
1623 // tlog.Debug(tag, $"WebViewStartInspectorServer END (OK)");
1628 [Description("WebView ScrollBy.")]
1629 [Property("SPEC", "Tizen.NUI.WebView.ScrollBy M")]
1630 [Property("SPEC_URL", "-")]
1631 [Property("CRITERIA", "MR")]
1632 [Property("COVPARAM", "")]
1633 [Property("AUTHOR", "guowei.wang@samsung.com")]
1634 public void WebViewScrollBy()
1636 tlog.Debug(tag, $"WebViewScrollBy START");
1638 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1639 Assert.IsNotNull(testingTarget, "null handle");
1640 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1644 testingTarget.ScrollBy(1, 1);
1648 tlog.Debug(tag, e.Message.ToString());
1649 Assert.Fail("Caught Exception : Failed!");
1652 testingTarget.ClearCache();
1653 testingTarget.ClearCookies();
1655 testingTarget.Dispose();
1656 tlog.Debug(tag, $"WebViewScrollBy END (OK)");
1661 [Description("WebView ScrollEdgeBy.")]
1662 [Property("SPEC", "Tizen.NUI.WebView.ScrollEdgeBy M")]
1663 [Property("SPEC_URL", "-")]
1664 [Property("CRITERIA", "MR")]
1665 [Property("COVPARAM", "")]
1666 [Property("AUTHOR", "guowei.wang@samsung.com")]
1667 public void WebViewScrollEdgeBy()
1669 tlog.Debug(tag, $"WebViewScrollEdgeBy START");
1671 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1672 Assert.IsNotNull(testingTarget, "null handle");
1673 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1675 var result = testingTarget.ScrollEdgeBy(1, 1);
1676 tlog.Debug(tag, "ScrollEdgeBy : " + result);
1678 testingTarget.ClearCache();
1679 testingTarget.ClearCookies();
1681 testingTarget.Dispose();
1682 tlog.Debug(tag, $"WebViewScrollEdgeBy END (OK)");
1687 [Description("WebView GoBack.")]
1688 [Property("SPEC", "Tizen.NUI.WebView.GoBack M")]
1689 [Property("SPEC_URL", "-")]
1690 [Property("CRITERIA", "MR")]
1691 [Property("COVPARAM", "")]
1692 [Property("AUTHOR", "guowei.wang@samsung.com")]
1693 public void WebViewGoBack()
1695 tlog.Debug(tag, $"WebViewGoBack START");
1697 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1698 Assert.IsNotNull(testingTarget, "null handle");
1699 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1703 testingTarget.GoBack();
1707 tlog.Debug(tag, e.Message.ToString());
1708 Assert.Fail("Caught Exception : Failed!");
1711 testingTarget.ClearCache();
1712 testingTarget.ClearCookies();
1714 testingTarget.Dispose();
1715 tlog.Debug(tag, $"WebViewGoBack END (OK)");
1720 [Description("WebView GoForward.")]
1721 [Property("SPEC", "Tizen.NUI.WebView.GoForward M")]
1722 [Property("SPEC_URL", "-")]
1723 [Property("CRITERIA", "MR")]
1724 [Property("COVPARAM", "")]
1725 [Property("AUTHOR", "guowei.wang@samsung.com")]
1726 public void WebViewGoForward()
1728 tlog.Debug(tag, $"WebViewGoForward START");
1730 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1731 Assert.IsNotNull(testingTarget, "null handle");
1732 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1736 testingTarget.GoForward();
1740 tlog.Debug(tag, e.Message.ToString());
1741 Assert.Fail("Caught Exception : Failed!");
1744 testingTarget.ClearCache();
1745 testingTarget.ClearCookies();
1747 testingTarget.Dispose();
1748 tlog.Debug(tag, $"WebViewGoForward END (OK)");
1753 [Description("WebView CanGoBack.")]
1754 [Property("SPEC", "Tizen.NUI.WebView.CanGoBack M")]
1755 [Property("SPEC_URL", "-")]
1756 [Property("CRITERIA", "MR")]
1757 [Property("COVPARAM", "")]
1758 [Property("AUTHOR", "guowei.wang@samsung.com")]
1759 public void WebViewCanGoBack()
1761 tlog.Debug(tag, $"WebViewCanGoBack START");
1763 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1764 Assert.IsNotNull(testingTarget, "null handle");
1765 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1767 var result = testingTarget.CanGoBack();
1768 tlog.Debug(tag, "CanGoBack : " + result);
1770 testingTarget.ClearCache();
1771 testingTarget.ClearCookies();
1773 testingTarget.Dispose();
1774 tlog.Debug(tag, $"WebViewCanGoBack END (OK)");
1779 [Description("WebView CanGoForward.")]
1780 [Property("SPEC", "Tizen.NUI.WebView.CanGoForward M")]
1781 [Property("SPEC_URL", "-")]
1782 [Property("CRITERIA", "MR")]
1783 [Property("COVPARAM", "")]
1784 [Property("AUTHOR", "guowei.wang@samsung.com")]
1785 public void WebViewCanGoForward()
1787 tlog.Debug(tag, $"WebViewCanGoForward START");
1789 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1790 Assert.IsNotNull(testingTarget, "null handle");
1791 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1793 var result = testingTarget.CanGoForward();
1794 tlog.Debug(tag, "CanGoForward : " + result);
1796 testingTarget.ClearCache();
1797 testingTarget.ClearCookies();
1799 testingTarget.Dispose();
1800 tlog.Debug(tag, $"WebViewCanGoForward END (OK)");
1805 [Description("WebView EvaluateJavaScript.")]
1806 [Property("SPEC", "Tizen.NUI.WebView.EvaluateJavaScript M")]
1807 [Property("SPEC_URL", "-")]
1808 [Property("CRITERIA", "MR")]
1809 [Property("COVPARAM", "")]
1810 [Property("AUTHOR", "guowei.wang@samsung.com")]
1811 public void WebViewEvaluateJavaScript()
1813 tlog.Debug(tag, $"WebViewEvaluateJavaScript START");
1815 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1816 Assert.IsNotNull(testingTarget, "null handle");
1817 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1821 testingTarget.EvaluateJavaScript("<script type=\"text / javascript\">document.write(\"page\");</script>");
1825 tlog.Debug(tag, e.Message.ToString());
1826 Assert.Fail("Caught Exception : Failed!");
1829 testingTarget.ClearCache();
1830 testingTarget.ClearCookies();
1832 testingTarget.Dispose();
1833 tlog.Debug(tag, $"WebViewEvaluateJavaScript END (OK)");
1838 [Description("WebView AddJavaScriptMessageHandler.")]
1839 [Property("SPEC", "Tizen.NUI.WebView.AddJavaScriptMessageHandler M")]
1840 [Property("SPEC_URL", "-")]
1841 [Property("CRITERIA", "MR")]
1842 [Property("COVPARAM", "")]
1843 [Property("AUTHOR", "guowei.wang@samsung.com")]
1844 public void WebViewAddJavaScriptMessageHandler()
1846 tlog.Debug(tag, $"WebViewAddJavaScriptMessageHandler START");
1848 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1849 Assert.IsNotNull(testingTarget, "null handle");
1850 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1854 testingTarget.AddJavaScriptMessageHandler("AllowOrigin", JsCallback);
1858 tlog.Debug(tag, e.Message.ToString());
1859 Assert.Fail("Caught Exception : Failed!");
1862 testingTarget.ClearCache();
1863 testingTarget.ClearCookies();
1865 testingTarget.Dispose();
1866 tlog.Debug(tag, $"WebViewAddJavaScriptMessageHandler END (OK)");
1871 [Description("WebView RegisterJavaScriptAlertCallback.")]
1872 [Property("SPEC", "Tizen.NUI.WebView.RegisterJavaScriptAlertCallback M")]
1873 [Property("SPEC_URL", "-")]
1874 [Property("CRITERIA", "MR")]
1875 [Property("COVPARAM", "")]
1876 [Property("AUTHOR", "guowei.wang@samsung.com")]
1877 public void WebViewRegisterJavaScriptAlertCallback()
1879 tlog.Debug(tag, $"WebViewRegisterJavaScriptAlertCallback START");
1881 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1882 Assert.IsNotNull(testingTarget, "null handle");
1883 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1887 testingTarget.RegisterJavaScriptAlertCallback(JsCallback);
1891 tlog.Debug(tag, e.Message.ToString());
1892 Assert.Fail("Caught Exception : Failed!");
1895 testingTarget.ClearCache();
1896 testingTarget.ClearCookies();
1898 testingTarget.Dispose();
1899 tlog.Debug(tag, $"WebViewRegisterJavaScriptAlertCallback END (OK)");
1904 [Description("WebView RegisterJavaScriptConfirmCallback.")]
1905 [Property("SPEC", "Tizen.NUI.WebView.RegisterJavaScriptConfirmCallback M")]
1906 [Property("SPEC_URL", "-")]
1907 [Property("CRITERIA", "MR")]
1908 [Property("COVPARAM", "")]
1909 [Property("AUTHOR", "guowei.wang@samsung.com")]
1910 public void WebViewRegisterJavaScriptConfirmCallback()
1912 tlog.Debug(tag, $"WebViewRegisterJavaScriptConfirmCallback START");
1914 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1915 Assert.IsNotNull(testingTarget, "null handle");
1916 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1920 testingTarget.RegisterJavaScriptConfirmCallback(JsCallback);
1924 tlog.Debug(tag, e.Message.ToString());
1925 Assert.Fail("Caught Exception : Failed!");
1928 testingTarget.ClearCache();
1929 testingTarget.ClearCookies();
1931 testingTarget.Dispose();
1932 tlog.Debug(tag, $"WebViewRegisterJavaScriptConfirmCallback END (OK)");
1937 [Description("WebView RegisterJavaScriptPromptCallback.")]
1938 [Property("SPEC", "Tizen.NUI.WebView.RegisterJavaScriptPromptCallback M")]
1939 [Property("SPEC_URL", "-")]
1940 [Property("CRITERIA", "MR")]
1941 [Property("COVPARAM", "")]
1942 [Property("AUTHOR", "guowei.wang@samsung.com")]
1943 public void WebViewRegisterJavaScriptPromptCallback()
1945 tlog.Debug(tag, $"WebViewRegisterJavaScriptPromptCallback START");
1947 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1948 Assert.IsNotNull(testingTarget, "null handle");
1949 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1953 testingTarget.RegisterJavaScriptPromptCallback(PromptCallback);
1957 tlog.Debug(tag, e.Message.ToString());
1958 Assert.Fail("Caught Exception : Failed!");
1961 testingTarget.ClearCache();
1962 testingTarget.ClearCookies();
1964 testingTarget.Dispose();
1965 tlog.Debug(tag, $"WebViewRegisterJavaScriptPromptCallback END (OK)");
1970 [Description("WebView ClearAllTilesResources.")]
1971 [Property("SPEC", "Tizen.NUI.WebView.ClearAllTilesResources M")]
1972 [Property("SPEC_URL", "-")]
1973 [Property("CRITERIA", "MR")]
1974 [Property("COVPARAM", "")]
1975 [Property("AUTHOR", "guowei.wang@samsung.com")]
1976 public void WebViewClearAllTilesResources()
1978 tlog.Debug(tag, $"WebViewClearAllTilesResources START");
1980 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
1981 Assert.IsNotNull(testingTarget, "null handle");
1982 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
1986 testingTarget.ClearAllTilesResources();
1990 tlog.Debug(tag, e.Message.ToString());
1991 Assert.Fail("Caught Exception : Failed!");
1994 testingTarget.ClearCache();
1995 testingTarget.ClearCookies();
1997 testingTarget.Dispose();
1998 tlog.Debug(tag, $"WebViewClearAllTilesResources END (OK)");
2003 [Description("WebView ClearHistory.")]
2004 [Property("SPEC", "Tizen.NUI.WebView.ClearHistory M")]
2005 [Property("SPEC_URL", "-")]
2006 [Property("CRITERIA", "MR")]
2007 [Property("COVPARAM", "")]
2008 [Property("AUTHOR", "guowei.wang@samsung.com")]
2009 public void WebViewClearHistory()
2011 tlog.Debug(tag, $"WebViewClearHistory START");
2013 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2014 Assert.IsNotNull(testingTarget, "null handle");
2015 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2019 testingTarget.ClearHistory();
2023 tlog.Debug(tag, e.Message.ToString());
2024 Assert.Fail("Caught Exception : Failed!");
2027 testingTarget.ClearCache();
2028 testingTarget.ClearCookies();
2030 testingTarget.Dispose();
2031 tlog.Debug(tag, $"WebViewClearHistory END (OK)");
2036 [Description("WebView SetScaleFactor.")]
2037 [Property("SPEC", "Tizen.NUI.WebView.SetScaleFactor M")]
2038 [Property("SPEC_URL", "-")]
2039 [Property("CRITERIA", "MR")]
2040 [Property("COVPARAM", "")]
2041 [Property("AUTHOR", "guowei.wang@samsung.com")]
2042 public void WebViewSetScaleFactor()
2044 tlog.Debug(tag, $"WebViewSetScaleFactor START");
2046 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2047 Assert.IsNotNull(testingTarget, "null handle");
2048 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2052 using (Vector2 point = new Vector2(1.0f, 1.0f))
2054 testingTarget.SetScaleFactor(0.2f, point);
2056 var result = testingTarget.GetScaleFactor();
2057 tlog.Debug(tag, "ScaleFactor : " + result);
2062 tlog.Debug(tag, e.Message.ToString());
2063 Assert.Fail("Caught Exception : Failed!");
2066 testingTarget.ClearCache();
2067 testingTarget.ClearCookies();
2069 testingTarget.Dispose();
2070 tlog.Debug(tag, $"WebViewSetScaleFactor END (OK)");
2075 [Description("WebView ActivateAccessibility.")]
2076 [Property("SPEC", "Tizen.NUI.WebView.ActivateAccessibility M")]
2077 [Property("SPEC_URL", "-")]
2078 [Property("CRITERIA", "MR")]
2079 [Property("COVPARAM", "")]
2080 [Property("AUTHOR", "guowei.wang@samsung.com")]
2081 public void WebViewActivateAccessibility()
2083 tlog.Debug(tag, $"WebViewActivateAccessibility START");
2085 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2086 Assert.IsNotNull(testingTarget, "null handle");
2087 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2091 testingTarget.ActivateAccessibility(false);
2095 tlog.Debug(tag, e.Message.ToString());
2096 Assert.Fail("Caught Exception : Failed!");
2099 testingTarget.ClearCache();
2100 testingTarget.ClearCookies();
2102 testingTarget.Dispose();
2103 tlog.Debug(tag, $"WebViewActivateAccessibility END (OK)");
2108 [Description("WebView HighlightText.")]
2109 [Property("SPEC", "Tizen.NUI.WebView.HighlightText M")]
2110 [Property("SPEC_URL", "-")]
2111 [Property("CRITERIA", "MR")]
2112 [Property("COVPARAM", "")]
2113 [Property("AUTHOR", "guowei.wang@samsung.com")]
2114 public void WebViewHighlightText()
2116 tlog.Debug(tag, $"WebViewHighlightText START");
2118 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2119 Assert.IsNotNull(testingTarget, "null handle");
2120 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2124 testingTarget.HighlightText("web", Tizen.NUI.BaseComponents.WebView.FindOption.AtWordStart, 3);
2128 tlog.Debug(tag, e.Message.ToString());
2129 Assert.Fail("Caught Exception : Failed!");
2132 testingTarget.ClearCache();
2133 testingTarget.ClearCookies();
2135 testingTarget.Dispose();
2136 tlog.Debug(tag, $"WebViewHighlightText END (OK)");
2141 [Description("WebView AddDynamicCertificatePath.")]
2142 [Property("SPEC", "Tizen.NUI.WebView.AddDynamicCertificatePath M")]
2143 [Property("SPEC_URL", "-")]
2144 [Property("CRITERIA", "MR")]
2145 [Property("COVPARAM", "")]
2146 [Property("AUTHOR", "guowei.wang@samsung.com")]
2147 public void WebViewAddDynamicCertificatePath()
2149 tlog.Debug(tag, $"WebViewAddDynamicCertificatePath START");
2151 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2152 Assert.IsNotNull(testingTarget, "null handle");
2153 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2157 testingTarget.AddDynamicCertificatePath("127.0.0.0", "/");
2161 tlog.Debug(tag, e.Message.ToString());
2162 Assert.Fail("Caught Exception : Failed!");
2165 testingTarget.ClearCache();
2166 testingTarget.ClearCookies();
2168 testingTarget.Dispose();
2169 tlog.Debug(tag, $"WebViewAddDynamicCertificatePath END (OK)");
2174 [Description("WebView CheckVideoPlayingAsynchronously.")]
2175 [Property("SPEC", "Tizen.NUI.WebView.CheckVideoPlayingAsynchronously M")]
2176 [Property("SPEC_URL", "-")]
2177 [Property("CRITERIA", "MR")]
2178 [Property("COVPARAM", "")]
2179 [Property("AUTHOR", "guowei.wang@samsung.com")]
2180 public void WebViewCheckVideoPlayingAsynchronously()
2182 tlog.Debug(tag, $"WebViewCheckVideoPlayingAsynchronously START");
2184 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2185 Assert.IsNotNull(testingTarget, "null handle");
2186 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2190 testingTarget.CheckVideoPlayingAsynchronously(VideoCallback);
2194 tlog.Debug(tag, e.Message.ToString());
2195 Assert.Fail("Caught Exception : Failed!");
2198 testingTarget.ClearCache();
2199 testingTarget.ClearCookies();
2201 testingTarget.Dispose();
2202 tlog.Debug(tag, $"WebViewCheckVideoPlayingAsynchronously END (OK)");
2207 [Description("WebView RegisterGeolocationPermissionCallback.")]
2208 [Property("SPEC", "Tizen.NUI.WebView.RegisterGeolocationPermissionCallback M")]
2209 [Property("SPEC_URL", "-")]
2210 [Property("CRITERIA", "MR")]
2211 [Property("COVPARAM", "")]
2212 [Property("AUTHOR", "guowei.wang@samsung.com")]
2213 public void WebViewRegisterGeolocationPermissionCallback()
2215 tlog.Debug(tag, $"WebViewRegisterGeolocationPermissionCallback START");
2217 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2218 Assert.IsNotNull(testingTarget, "null handle");
2219 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2223 testingTarget.RegisterGeolocationPermissionCallback(GeolocationCallback);
2227 tlog.Debug(tag, e.Message.ToString());
2228 Assert.Fail("Caught Exception : Failed!");
2231 testingTarget.ClearCache();
2232 testingTarget.ClearCookies();
2234 testingTarget.Dispose();
2235 tlog.Debug(tag, $"WebViewRegisterGeolocationPermissionCallback END (OK)");
2240 [Description("WebView ClearCache.")]
2241 [Property("SPEC", "Tizen.NUI.WebView.ClearCache M")]
2242 [Property("SPEC_URL", "-")]
2243 [Property("CRITERIA", "MR")]
2244 [Property("COVPARAM", "")]
2245 [Property("AUTHOR", "guowei.wang@samsung.com")]
2246 public void WebViewClearCache()
2248 tlog.Debug(tag, $"WebViewClearCache START");
2250 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2251 Assert.IsNotNull(testingTarget, "null handle");
2252 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2256 testingTarget.ClearCache();
2260 tlog.Debug(tag, e.Message.ToString());
2261 Assert.Fail("Caught Exception : Failed!");
2264 testingTarget.ClearCache();
2265 testingTarget.ClearCookies();
2267 testingTarget.Dispose();
2268 tlog.Debug(tag, $"WebViewClearCache END (OK)");
2273 [Description("WebView ClearCookies.")]
2274 [Property("SPEC", "Tizen.NUI.WebView.ClearCookies M")]
2275 [Property("SPEC_URL", "-")]
2276 [Property("CRITERIA", "MR")]
2277 [Property("COVPARAM", "")]
2278 [Property("AUTHOR", "guowei.wang@samsung.com")]
2279 public void WebViewClearCookies()
2281 tlog.Debug(tag, $"WebViewClearCookies START");
2283 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2284 Assert.IsNotNull(testingTarget, "null handle");
2285 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2289 testingTarget.ClearCookies();
2293 tlog.Debug(tag, e.Message.ToString());
2294 Assert.Fail("Caught Exception : Failed!");
2297 testingTarget.ClearCache();
2298 testingTarget.ClearCookies();
2300 testingTarget.Dispose();
2301 tlog.Debug(tag, $"WebViewClearCookies END (OK)");
2306 //[Description("WebView SetTtsFocus.")]
2307 //[Property("SPEC", "Tizen.NUI.WebView.SetTtsFocus M")]
2308 //[Property("SPEC_URL", "-")]
2309 //[Property("CRITERIA", "MR")]
2310 //[Property("COVPARAM", "")]
2311 //[Property("AUTHOR", "guowei.wang@samsung.com")]
2312 //public void WebViewSetTtsFocus()
2314 // tlog.Debug(tag, $"WebViewSetTtsFocus START");
2316 // var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2317 // Assert.IsNotNull(testingTarget, "null handle");
2318 // Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2322 // testingTarget.SetTtsFocus(false);
2324 // catch (Exception e)
2326 // tlog.Debug(tag, e.Message.ToString());
2327 // Assert.Fail("Caught Exception : Failed!");
2330 // testingTarget.Dispose();
2331 // tlog.Debug(tag, $"WebViewSetTtsFocus END (OK)");
2336 [Description("WebView DownCast.")]
2337 [Property("SPEC", "Tizen.NUI.WebView.DownCast M")]
2338 [Property("SPEC_URL", "-")]
2339 [Property("CRITERIA", "MR")]
2340 [Property("COVPARAM", "")]
2341 [Property("AUTHOR", "guowei.wang@samsung.com")]
2342 public void WebViewDownCast()
2344 tlog.Debug(tag, $"WebViewDownCast START");
2346 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2347 Assert.IsNotNull(testingTarget, "null handle");
2348 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2352 Tizen.NUI.BaseComponents.WebView.DownCast(testingTarget);
2356 tlog.Debug(tag, e.Message.ToString());
2357 Assert.Fail("Caught Exception : Failed!");
2360 testingTarget.ClearCache();
2361 testingTarget.ClearCookies();
2363 testingTarget.Dispose();
2364 tlog.Debug(tag, $"WebViewDownCast END (OK)");
2369 [Description("WebView Assign.")]
2370 [Property("SPEC", "Tizen.NUI.WebView.Assign M")]
2371 [Property("SPEC_URL", "-")]
2372 [Property("CRITERIA", "MR")]
2373 [Property("COVPARAM", "")]
2374 [Property("AUTHOR", "guowei.wang@samsung.com")]
2375 public void WebViewAssign()
2377 tlog.Debug(tag, $"WebViewAssign START");
2379 var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2380 Assert.IsNotNull(testingTarget, "null handle");
2381 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2385 testingTarget.Assign(testingTarget);
2389 tlog.Debug(tag, e.Message.ToString());
2390 Assert.Fail("Caught Exception : Failed!");
2393 testingTarget.ClearCache();
2394 testingTarget.ClearCookies();
2396 testingTarget.Dispose();
2397 tlog.Debug(tag, $"WebViewAssign END (OK)");
2402 [Description("WebView Dispose.")]
2403 [Property("SPEC", "Tizen.NUI.WebView.Dispose M")]
2404 [Property("SPEC_URL", "-")]
2405 [Property("CRITERIA", "MR")]
2406 [Property("COVPARAM", "")]
2407 [Property("AUTHOR", "guowei.wang@samsung.com")]
2408 public void WebViewDispose()
2410 tlog.Debug(tag, $"WebViewDispose START");
2412 var testingTarget = new MyWebView();
2413 Assert.IsNotNull(testingTarget, "null handle");
2414 Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2416 testingTarget.OnDispose(DisposeTypes.Explicit);
2418 testingTarget.OnDispose(DisposeTypes.Explicit);
2420 tlog.Debug(tag, $"WebViewDispose END (OK)");
2425 //[Description("WebView ContextMenuShown.")]
2426 //[Property("SPEC", "Tizen.NUI.WebView.ContextMenuShown A")]
2427 //[Property("SPEC_URL", "-")]
2428 //[Property("CRITERIA", "PRW")]
2429 //[Property("COVPARAM", "")]
2430 //[Property("AUTHOR", "guowei.wang@samsung.com")]
2431 //public void WebViewContextMenuShown()
2433 // tlog.Debug(tag, $"WebViewContextMenuShown START");
2435 // var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2436 // Assert.IsNotNull(testingTarget, "null handle");
2437 // Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2439 // testingTarget.ContextMenuShown += OnContextMenuShow;
2440 // testingTarget.ContextMenuShown -= OnContextMenuShow;
2442 // testingTarget.Dispose();
2443 // tlog.Debug(tag, $"WebViewContextMenuShown END (OK)");
2448 //[Description("WebView ContextMenuHidden.")]
2449 //[Property("SPEC", "Tizen.NUI.WebView.ContextMenuHidden A")]
2450 //[Property("SPEC_URL", "-")]
2451 //[Property("CRITERIA", "PRW")]
2452 //[Property("COVPARAM", "")]
2453 //[Property("AUTHOR", "guowei.wang@samsung.com")]
2454 //public void WebViewContextMenuHidden()
2456 // tlog.Debug(tag, $"WebViewContextMenuHidden START");
2458 // var testingTarget = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai");
2459 // Assert.IsNotNull(testingTarget, "null handle");
2460 // Assert.IsInstanceOf<Tizen.NUI.BaseComponents.WebView>(testingTarget, "Should return WebView instance.");
2462 // testingTarget.ContextMenuHidden += OnContextMenuHide;
2463 // testingTarget.ContextMenuHidden -= OnContextMenuHide;
2465 // testingTarget.Dispose();
2466 // tlog.Debug(tag, $"WebViewContextMenuHidden END (OK)");
2469 private void OnLoadStarted(object sender, WebViewPageLoadEventArgs e) { }
2470 private void OnLoading(object sender, WebViewPageLoadEventArgs e) { }
2471 private void OnLoadFinished(object sender, WebViewPageLoadEventArgs e) { }
2472 private void OnLoadError(object sender, WebViewPageLoadErrorEventArgs e) { }
2473 private void OnEdgeReached(object sender, WebViewScrollEdgeReachedEventArgs e) { }
2474 private void OnUrlChange(object sender, WebViewUrlChangedEventArgs e) { }
2475 private void OnFormRepostPolicyDecide(object sender, WebViewFormRepostPolicyDecidedEventArgs e) { }
2476 private void OnFrameRender(object sender, EventArgs e) { }
2477 private void OnResponsePolicyDecide(object sender, WebViewResponsePolicyDecidedEventArgs e) { }
2478 private void OnCertificateConfirme(object sender, WebViewCertificateReceivedEventArgs e) { }
2479 private void OnHttpRequestIntercepte(object sender, WebViewHttpRequestInterceptedEventArgs e) { }
2480 private void OnSslCertificateChange(object sender, WebViewCertificateReceivedEventArgs e) { }
2481 private void OnHttpAuthRequeste(object sender, WebViewHttpAuthRequestedEventArgs e) { }
2482 private void OnConsoleMessageReceive(object sender, WebViewConsoleMessageReceivedEventArgs e) { }
2483 //private void OnContextMenuShow(object sender, WebViewContextMenuShownEventArgs e) { }
2484 //private void OnContextMenuHide(object sender, WebViewContextMenuHiddenEventArgs e) { }