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

Unified Diff: LayoutTests/fast/css/zoom-body-scroll.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/css/zoom-body-scroll.html
diff --git a/LayoutTests/fast/css/zoom-body-scroll.html b/LayoutTests/fast/css/zoom-body-scroll.html
index 9f5c405ba9a9bffc29dba0eef8128743552132d2..24b8ff644e26057aa2955b043c6e09b9da48622d 100644
--- a/LayoutTests/fast/css/zoom-body-scroll.html
+++ b/LayoutTests/fast/css/zoom-body-scroll.html
@@ -19,30 +19,28 @@
if (window.testRunner) {
testRunner.dumpAsText();
- var body = document.body;
- var documentElement = document.documentElement;
- checkValue('document.body.scrollHeight', 1000)
- checkValue('document.body.scrollWidth', 1000);
+ checkValue('document.scrollingElement.scrollHeight', 1000)
+ checkValue('document.scrollingElement.scrollWidth', 1000);
// Scrolling right to 50.
- body.scrollLeft = 50;
- checkValue('document.body.scrollLeft', 50);
+ document.scrollingElement.scrollLeft = 50;
+ checkValue('document.scrollingElement.scrollLeft', 50);
// Zooming in.
eventSender.zoomPageIn();
- checkValue('document.body.scrollHeight', 1000);
- checkValue('document.body.scrollWidth', 1000);
- checkValue('document.body.scrollTop', 0);
- checkValue('document.body.scrollLeft', 50);
+ checkValue('document.scrollingElement.scrollHeight', 1000);
+ checkValue('document.scrollingElement.scrollWidth', 1000);
+ checkValue('document.scrollingElement.scrollTop', 0);
+ checkValue('document.scrollingElement.scrollLeft', 50);
// Scrolling down to 100.
- body.scrollTop = 100;
- checkValue('document.body.scrollTop', 100);
+ document.scrollingElement.scrollTop = 100;
+ checkValue('document.scrollingElement.scrollTop', 100);
// Zooming back out.
eventSender.zoomPageOut();
- checkValue('document.body.scrollTop', 100);
- checkValue('document.body.scrollLeft', 50);
+ checkValue('document.scrollingElement.scrollTop', 100);
+ checkValue('document.scrollingElement.scrollLeft', 50);
}
</script>
</body>
« no previous file with comments | « LayoutTests/fast/css/resize-corner-tracking-touch.html ('k') | LayoutTests/fast/css/zoom-body-scroll-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698