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 392f2cf6b08b353cf49a1c9161273d1dff66f942..f406a84fac837a3802cc16e4b2fb9bdf0c03a5cb 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.documentElement.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.documentElement.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.documentElement.scrollTop", "0"); |
startTime = Date.now(); |
eventSender.continuousMouseScrollBy(0, -elementHeight); |
scrolledWhileCursorVisible(); |