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

Unified Diff: LayoutTests/editing/input/resources/reveal-utilities.js

Issue 26472003: Fix improper scrollTop/Left usage in LayoutTests/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@issue_304768
Patch Set: Fix improper scrollTop/Left usage in LayoutTests/ Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/resources/check-scroll-position-onload.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | LayoutTests/fast/dom/resources/check-scroll-position-onload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698