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

Unified Diff: LayoutTests/fast/events/scale-and-scroll-window.html

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/fast/events/scale-and-scroll-window.html
diff --git a/LayoutTests/fast/events/scale-and-scroll-window.html b/LayoutTests/fast/events/scale-and-scroll-window.html
index 2c67664c236a64b06ca0fd35324363fc29a5005c..f671861fabd4342eab0e7da9275f1824f9a6d46e 100644
--- a/LayoutTests/fast/events/scale-and-scroll-window.html
+++ b/LayoutTests/fast/events/scale-and-scroll-window.html
@@ -10,7 +10,7 @@
window.enablePixelTesting = true;
function scroll() {
- // The page scale, as set by window.internals.setPageScaleFactor should not be apparent
+ // The page scale, as set by window.eventSender.setPageScaleFactor should not be apparent
// to javascript. So, we expect scrolling to (100,100) to be page coordinates, rather
// than device pixels.
window.scrollTo(100,100);
@@ -24,9 +24,8 @@
function scaleWithEventSender() {
var scaleFactor = 2.0;
var scaleOffset = 0;
- if (window.internals) {
- window.internals.setPageScaleFactor(scaleFactor, scaleOffset, scaleOffset);
- }
+ if (window.eventSender)
+ eventSender.setPageScaleFactor(scaleFactor, scaleOffset, scaleOffset);
}
function test() {

Powered by Google App Engine
This is Rietveld 408576698