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

Unified Diff: LayoutTests/fast/events/mouse-cursor.html

Issue 25039006: document.documentElement.scrollTop/Left is zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: document.documentElement.scrollTop/Left is zero 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
Index: LayoutTests/fast/events/mouse-cursor.html
diff --git a/LayoutTests/fast/events/mouse-cursor.html b/LayoutTests/fast/events/mouse-cursor.html
index 184bfea15c4e437b18dc9fcc44c8378f549e45a8..a14381191af79aefefba3f465a8464a2ff2d19c1 100644
--- a/LayoutTests/fast/events/mouse-cursor.html
+++ b/LayoutTests/fast/events/mouse-cursor.html
@@ -55,8 +55,8 @@ function runTests() {
debug('TEST CASE: ' + node.textContent);
// Make sure the node is visible and move the mouse over top of it.
- document.body.scrollTop = node.offsetTop - 50;
- eventSender.mouseMoveTo(node.offsetLeft + 3, node.offsetTop - document.body.scrollTop + 3);
+ document.documentElement.scrollTop = node.offsetTop - 50;
+ eventSender.mouseMoveTo(node.offsetLeft + 3, node.offsetTop - document.documentElement.scrollTop + 3);
// Get details of the current mouse cursor.
// Note that we could return structured data which we then validate, but that's a lot more
« no previous file with comments | « LayoutTests/fast/dom/anchor-without-content.html ('k') | LayoutTests/fast/events/mouse-cursor-image-set.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698