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

Unified Diff: LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use setPageScaleFactorLimits(). Created 7 years, 4 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
Index: LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js
diff --git a/LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js b/LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js
index fbdb548f3d988e0b8038f78702b34dfa4e334614..3e085b419b9c9d64b5e3d169ce2e424298846a1e 100644
--- a/LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js
+++ b/LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js
@@ -2,7 +2,8 @@ function runNonFastScrollableRegionTest(scale) {
var invScale;
window.internals.settings.setMockScrollbarsEnabled(true);
if (scale != undefined) {
- window.internals.setPageScaleFactor(scale, 0, 0);
+ if (window.eventSender)
+ eventSender.setPageScaleFactor(scale, 0, 0);
// FIXME: This is a hack for applyPageScaleFactorInCompositor() == false.
invScale = 1 / scale;
} else {

Powered by Google App Engine
This is Rietveld 408576698