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

Unified Diff: LayoutTests/fast/scrolling/hover-during-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/scrolling/hover-during-scroll.html
diff --git a/LayoutTests/fast/scrolling/hover-during-scroll.html b/LayoutTests/fast/scrolling/hover-during-scroll.html
index 6d5f85e980cea83c3429d6d608b7c368653dc1f7..dd43bcd495b7cebf6c63979b7c3679018a1ee8c0 100644
--- a/LayoutTests/fast/scrolling/hover-during-scroll.html
+++ b/LayoutTests/fast/scrolling/hover-during-scroll.html
@@ -38,7 +38,7 @@ function scrolledWhileCursorNotVisible()
shouldBeEqualToString("array[2].innerHTML", textWhenHovered);
shouldBeEqualToString("array[3].innerHTML", textWhenNotHovered);
shouldBeEqualToString("array[4].innerHTML", textWhenNotHovered);
- shouldBe("document.body.scrollTop", "100");
+ shouldBe("document.scrollingElement.scrollTop", "100");
testRunner.notifyDone();
}
@@ -60,7 +60,7 @@ function scrolledWhileCursorVisible()
shouldBeEqualToString("array[3].innerHTML", textWhenNotHovered);
debug("Mouse is not visible, scrolling page so the mouse ends up on the fourth div.");
- shouldBe("document.body.scrollTop", "50");
+ shouldBe("document.scrollingElement.scrollTop", "50");
internals.setIsCursorVisible(document, false);
startTime = Date.now();
eventSender.continuousMouseScrollBy(0, -elementHeight);
@@ -116,7 +116,7 @@ function runtest()
shouldBeEqualToString("array[2].innerHTML", textWhenNotHovered);
debug("Mouse is visible, scrolling page so the mouse ends up on the third div.");
- shouldBe("document.body.scrollTop", "0");
+ shouldBe("document.scrollingElement.scrollTop", "0");
startTime = Date.now();
eventSender.continuousMouseScrollBy(0, -elementHeight);
scrolledWhileCursorVisible();

Powered by Google App Engine
This is Rietveld 408576698