Index: LayoutTests/editing/input/resources/reveal-utilities.js |
diff --git a/LayoutTests/editing/input/resources/reveal-utilities.js b/LayoutTests/editing/input/resources/reveal-utilities.js |
index a2ef3667b3be094491e0b6ad46f4aa5b12859d94..c668b35e1e0087b8577e82ece7d529e60301b36b 100644 |
--- a/LayoutTests/editing/input/resources/reveal-utilities.js |
+++ b/LayoutTests/editing/input/resources/reveal-utilities.js |
@@ -73,9 +73,9 @@ function performJumpAtTheEdgeTest(useCtrlKeyModifier) |
var previousScrollTop = 0, currentScrollTop = 0; |
var jumpDetected = false; |
for (var i = 0; i < 120; ++i) { |
- previousScrollTop = document.body.scrollTop; |
+ previousScrollTop = document.documentElement.scrollTop; |
eventSender.keyDown("\r", useCtrlKeyModifier ? ["ctrlKey"] : []); |
- currentScrollTop = document.body.scrollTop; |
+ currentScrollTop = document.documentElement.scrollTop; |
// Smooth scrolls are allowed. |
if (Math.abs(previousScrollTop - currentScrollTop) > 24) { |
jumpDetected = true; |