Index: Source/web/tests/TouchActionTest.cpp |
diff --git a/Source/web/tests/TouchActionTest.cpp b/Source/web/tests/TouchActionTest.cpp |
index 9e0e093e90645016194d7adbc05cac3d0d3d1c4f..ab72b0f16433e38dc6e0f8e4eed54c4d7551f4c7 100644 |
--- a/Source/web/tests/TouchActionTest.cpp |
+++ b/Source/web/tests/TouchActionTest.cpp |
@@ -168,6 +168,9 @@ WebView* TouchActionTest::setupTest(std::string file, TouchActionTrackingWebView |
// Note that JavaScript must be enabled for shadow DOM tests. |
WebView* webView = m_webViewHelper.initializeAndLoad(m_baseURL + file, true, 0, &client); |
+ // Lock page scale factor to avoid zooming out to contents size. |
+ m_webViewHelper.webView()->setPageScaleFactorLimits(1, 1); |
+ |
// Set size to enable hit testing, and avoid line wrapping for consistency with browser. |
webView->resize(WebSize(800, 1200)); |