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

Unified Diff: LayoutTests/fast/events/fire-scroll-event.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/fire-scroll-event.html
diff --git a/LayoutTests/fast/events/fire-scroll-event.html b/LayoutTests/fast/events/fire-scroll-event.html
index d87a9cbf91eb286d5b76da39b0234a92845ff16b..c4b7c0370d68949e117e918665169b24d94d71f8 100644
--- a/LayoutTests/fast/events/fire-scroll-event.html
+++ b/LayoutTests/fast/events/fire-scroll-event.html
@@ -12,8 +12,8 @@ onscroll = function(event)
eventCount++;
if (eventCount == 1) {
debug('Scroll event bubbles: ' + event.bubbles);
- var scrollX = document.body.scrollLeft;
- var scrollY = document.body.scrollTop;
+ var scrollX = document.scrollingElement.scrollLeft;
+ var scrollY = document.scrollingElement.scrollTop;
testPassed('Scroll position: (' + scrollX + ', ' + scrollY + ')');
// Don't call notifyDone straight away, in case there's another scroll event coming.
doneTimeout = setTimeout(finishJSTest, 100);

Powered by Google App Engine
This is Rietveld 408576698