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

Unified Diff: LayoutTests/fast/dom/window-inner-size-scaling.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/dom/window-inner-size-scaling.html
diff --git a/LayoutTests/fast/dom/window-inner-size-scaling.html b/LayoutTests/fast/dom/window-inner-size-scaling.html
index 4597b232d701f6aaa5343221dbb719e5244830f8..93a0166cd976137064c771391b4184c4ba1bdeb8 100644
--- a/LayoutTests/fast/dom/window-inner-size-scaling.html
+++ b/LayoutTests/fast/dom/window-inner-size-scaling.html
@@ -7,8 +7,8 @@
var originalHeight = window.innerHeight;
var scale = 2;
- if (window.internals)
- window.internals.setPageScaleFactor(scale, 0, 0);
+ if (window.eventSender)
+ window.eventSender.setPageScaleFactor(scale, 0, 0);
shouldBe("window.innerWidth", "Math.floor(originalWidth / scale)");
shouldBe("window.innerHeight", "Math.floor(originalHeight / scale)");
« no previous file with comments | « LayoutTests/fast/dom/iframe-inner-size-scaling.html ('k') | LayoutTests/fast/dom/window-scroll-scaling.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698