From a26e81ccb1c773fb692ee94b7c8aa8b28bd1cf85 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 5 Feb 2020 15:40:27 +0100 Subject: [PATCH] Remove test for \v escaping in wxWebView::RunScript() This escape character doesn't seem to be handled by IE in the default emulation mode and it's not worth complicating the test code just to test for it, so simply remove it from the test. --- tests/controls/webtest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/controls/webtest.cpp b/tests/controls/webtest.cpp index 19a5bc6349..4bcb3ada68 100644 --- a/tests/controls/webtest.cpp +++ b/tests/controls/webtest.cpp @@ -291,8 +291,8 @@ TEST_CASE_METHOD(WebViewTestCase, "WebView", "[wxWebView]") CHECK(m_browser->RunScript("function f(a){return a;}f('Hello World!');", &result)); CHECK(result == _("Hello World!")); - CHECK(m_browser->RunScript("function f(a){return a;}f('a\\\'aa\\n\\rb\vb\\tb\\\\ccc\\\"ddd\\b\\fx');", &result)); - CHECK(result == _("a\'aa\n\rb\vb\tb\\ccc\"ddd\b\fx")); + CHECK(m_browser->RunScript("function f(a){return a;}f('a\\\'aa\\n\\rb\\tb\\\\ccc\\\"ddd\\b\\fx');", &result)); + CHECK(result == _("a\'aa\n\rb\tb\\ccc\"ddd\b\fx")); CHECK(m_browser->RunScript("function f(a){return a;}f(123);", &result)); CHECK(wxAtoi(result) == 123);