Blame fix-webview-tests.patch

Scott Talbert b91582
From 957842946ea659a3ce4fb4a12aefb0e47c87a797 Mon Sep 17 00:00:00 2001
Scott Talbert b91582
From: Scott Talbert <swt@techie.net>
Scott Talbert b91582
Date: Thu, 23 Jul 2020 21:49:14 -0400
Scott Talbert b91582
Subject: [PATCH] Skip tests for functions unsupported on WebKit2
Scott Talbert b91582
Scott Talbert b91582
---
Scott Talbert b91582
 tests/controls/webtest.cpp | 4 ++++
Scott Talbert b91582
 1 file changed, 4 insertions(+)
Scott Talbert b91582
Scott Talbert b91582
diff --git a/tests/controls/webtest.cpp b/tests/controls/webtest.cpp
Scott Talbert b91582
index 82b58597869..43a4073437f 100644
Scott Talbert b91582
--- a/tests/controls/webtest.cpp
Scott Talbert b91582
+++ b/tests/controls/webtest.cpp
Scott Talbert b91582
@@ -123,6 +123,7 @@ TEST_CASE_METHOD(WebViewTestCase, "WebView", "[wxWebView]")
Scott Talbert b91582
         CHECK(m_browser->CanGoForward());
Scott Talbert b91582
     }
Scott Talbert b91582
 
Scott Talbert b91582
+#if !wxUSE_WEBVIEW_WEBKIT2
Scott Talbert b91582
     SECTION("HistoryEnable")
Scott Talbert b91582
     {
Scott Talbert b91582
         LoadUrl();
Scott Talbert b91582
@@ -136,7 +137,9 @@ TEST_CASE_METHOD(WebViewTestCase, "WebView", "[wxWebView]")
Scott Talbert b91582
         CHECK(!m_browser->CanGoForward());
Scott Talbert b91582
         CHECK(!m_browser->CanGoBack());
Scott Talbert b91582
     }
Scott Talbert b91582
+#endif
Scott Talbert b91582
 
Scott Talbert b91582
+#if !wxUSE_WEBVIEW_WEBKIT2
Scott Talbert b91582
     SECTION("HistoryClear")
Scott Talbert b91582
     {
Scott Talbert b91582
         LoadUrl(2);
Scott Talbert b91582
@@ -153,6 +156,7 @@ TEST_CASE_METHOD(WebViewTestCase, "WebView", "[wxWebView]")
Scott Talbert b91582
         CHECK(!m_browser->CanGoForward());
Scott Talbert b91582
         CHECK(!m_browser->CanGoBack());
Scott Talbert b91582
     }
Scott Talbert b91582
+#endif
Scott Talbert b91582
 
Scott Talbert b91582
     SECTION("HistoryList")
Scott Talbert b91582
     {