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

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: Fixed more tests, hopefully that's all (on Linux). Created 7 years, 6 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..f4ebfe07bf4dc616ca229e2e9d58162cca9d4d27 100644
--- a/LayoutTests/fast/events/scale-and-scroll-window.html
+++ b/LayoutTests/fast/events/scale-and-scroll-window.html
@@ -24,8 +24,8 @@
function scaleWithEventSender() {
var scaleFactor = 2.0;
var scaleOffset = 0;
- if (window.internals) {
- window.internals.setPageScaleFactor(scaleFactor, scaleOffset, scaleOffset);
+ if (window.eventSender) {
+ eventSender.scalePageBy(scaleFactor, scaleOffset, scaleOffset);
}
}

Powered by Google App Engine
This is Rietveld 408576698