Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1565)

Unified Diff: Source/web/tests/TouchActionTest.cpp

Issue 190723007: Fix tests to be compatible with Android scale initialization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove substantive change, change only tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/TouchActionTest.cpp
diff --git a/Source/web/tests/TouchActionTest.cpp b/Source/web/tests/TouchActionTest.cpp
index 52d22af0fbe9091cfb3b496de42c79b6cb9fd7a2..f5d1c4f26d8f82dd13076aaf73805219b925f6ac 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));
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698