Index: Source/web/tests/WebViewTest.cpp |
diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp |
index e2caa90d24b416af5dd7d05e4aac2a9c8bf5c609..d7618c498f13405f6f08b7db543b30818d04c5f6 100644 |
--- a/Source/web/tests/WebViewTest.cpp |
+++ b/Source/web/tests/WebViewTest.cpp |
@@ -1274,6 +1274,18 @@ TEST_F(WebViewTest, ClientTapHandling) |
m_webViewHelper.reset(); // Explicitly reset to break dependency on locally scoped client. |
} |
+TEST_F(WebViewTest, ClientTapHandlingNullWebViewClient) |
+{ |
+ WebViewImpl* webView = WebViewImpl::create(nullptr); |
+ webView->setMainFrame(WebLocalFrame::create(nullptr)); |
+ WebGestureEvent event; |
+ event.type = WebInputEvent::GestureTap; |
+ event.x = 3; |
+ event.y = 8; |
+ EXPECT_FALSE(webView->handleInputEvent(event)); |
+ webView->close(); |
+} |
+ |
#if OS(ANDROID) |
TEST_F(WebViewTest, LongPressSelection) |
{ |