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

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

Issue 25767003: Revert "document.documentElement.scrollTop/Left is zero" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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-image-set.html
diff --git a/LayoutTests/fast/events/mouse-cursor-image-set.html b/LayoutTests/fast/events/mouse-cursor-image-set.html
index e3a6beea5cdf7970e6d31049fa9a50fd92777fd8..822146cddb4ab95b28b5b103c0bc1435d3dee5eb 100644
--- a/LayoutTests/fast/events/mouse-cursor-image-set.html
+++ b/LayoutTests/fast/events/mouse-cursor-image-set.html
@@ -37,8 +37,8 @@ function checkCursors() {
var node = nodesToTest[i];
debug('TEST CASE: ' + node.textContent);
// Make sure the node is visible and move the mouse over top of it.
- document.documentElement.scrollTop = node.offsetTop - 50;
- eventSender.mouseMoveTo(node.offsetLeft + 3, node.offsetTop - document.documentElement.scrollTop + 3);
+ document.body.scrollTop = node.offsetTop - 50;
+ eventSender.mouseMoveTo(node.offsetLeft + 3, node.offsetTop - document.body.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

Powered by Google App Engine
This is Rietveld 408576698