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

Unified Diff: LayoutTests/fast/events/scale-and-scroll-body.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-body.html
diff --git a/LayoutTests/fast/events/scale-and-scroll-body.html b/LayoutTests/fast/events/scale-and-scroll-body.html
index a4b4f499a94fa18255780fc028aea8423f0d75a4..71d43fc4926663860fd75876353719a7ac892a29 100644
--- a/LayoutTests/fast/events/scale-and-scroll-body.html
+++ b/LayoutTests/fast/events/scale-and-scroll-body.html
@@ -11,11 +11,11 @@
function scrollViaJavascript() {
var scaleFactor = 2.0;
- if (window.internals) {
- window.internals.setPageScaleFactor(scaleFactor, 0, 0);
+ if (window.eventSender) {
+ window.eventSender.setPageScaleFactor(scaleFactor, 0, 0);
}
- // 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.
document.body.scrollLeft = 100;
@@ -28,10 +28,10 @@
}
function scrollViaSetScaleFactor() {
- if (window.internals) {
+ if (window.eventSender) {
// Test that the scroll offset changes even if scaleFactor remains
// the same.
- window.internals.setPageScaleFactor(1, 30, 30);
+ window.eventSender.setPageScaleFactor(1, 30, 30);
shouldBe("window.document.body.scrollTop", "30");
shouldBe("window.document.body.scrollLeft", "30");
}
« no previous file with comments | « LayoutTests/fast/events/resize-events-fixed-layout.html ('k') | LayoutTests/fast/events/scale-and-scroll-div.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698