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

Unified Diff: LayoutTests/fast/events/scale-and-scroll-iframe-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-iframe-window.html
diff --git a/LayoutTests/fast/events/scale-and-scroll-iframe-window.html b/LayoutTests/fast/events/scale-and-scroll-iframe-window.html
index 801de8defef9f2a27e387e11c792984f8862d5ad..2f5eea93d99af5d0c2bd77c4d809591eba4fce34 100644
--- a/LayoutTests/fast/events/scale-and-scroll-iframe-window.html
+++ b/LayoutTests/fast/events/scale-and-scroll-iframe-window.html
@@ -23,9 +23,8 @@
function scaleWithEventSender() {
var scaleFactor = 0.5;
var scaleOffset = 0;
- if (window.internals) {
- window.internals.setPageScaleFactor(scaleFactor, scaleOffset, scaleOffset);
- }
+ if (window.eventSender)
+ eventSender.setPageScaleFactor(scaleFactor, scaleOffset, scaleOffset);
}
function test() {
« no previous file with comments | « LayoutTests/fast/events/scale-and-scroll-iframe-body.html ('k') | LayoutTests/fast/events/scale-and-scroll-window.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698