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

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

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 years, 7 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 81bf0d825024ca95a8da68cc9ea82e0ecbd0be56..b2821e1adb17a5596ddd6c88e3caa62c49d6e641 100644
--- a/LayoutTests/fast/events/scale-and-scroll-body.html
+++ b/LayoutTests/fast/events/scale-and-scroll-body.html
@@ -18,11 +18,11 @@
// 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;
- document.body.scrollTop = 100;
+ document.scrollingElement.scrollLeft = 100;
+ document.scrollingElement.scrollTop = 100;
- shouldBe("window.document.body.scrollTop", "100");
- shouldBe("window.document.body.scrollLeft", "100");
+ shouldBe("window.document.scrollingElement.scrollTop", "100");
+ shouldBe("window.document.scrollingElement.scrollLeft", "100");
shouldBe("window.scrollX", "100");
shouldBe("window.scrollY", "100");
}
@@ -32,8 +32,8 @@
// Test that the scroll offset changes even if scaleFactor remains
// the same.
window.eventSender.setPageScaleFactor(1, 30, 30);
- shouldBe("window.document.body.scrollTop", "30");
- shouldBe("window.document.body.scrollLeft", "30");
+ shouldBe("window.document.scrollingElement.scrollTop", "30");
+ shouldBe("window.document.scrollingElement.scrollLeft", "30");
}
}

Powered by Google App Engine
This is Rietveld 408576698