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

Unified Diff: LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 years, 7 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/drag-and-drop-autoscroll-inner-frame.html
diff --git a/LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html b/LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html
index d211a360d3644e47f7c8c57688ed18bf34b9a17c..9950713b9b6f89e6d3961f114a2b5a0358d124db 100644
--- a/LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html
+++ b/LayoutTests/fast/events/drag-and-drop-autoscroll-inner-frame.html
@@ -68,7 +68,7 @@ function recordScroll2(e)
function autoscrollTestPart1()
{
- if (iframe.contentDocument.body.scrollTop == 0) {
+ if (iframe.contentDocument.scrollingElement.scrollTop == 0) {
testFailed("Autoscroll should have scrolled the iframe downwards, but did not");
finishTest();
return;
@@ -76,7 +76,7 @@ function autoscrollTestPart1()
testPassed("Autoscroll should have scrolled the iframe downwards, and did.");
- middleTermScrollOffset = iframe.contentDocument.body.scrollTop;
+ middleTermScrollOffset = iframe.contentDocument.scrollingElement.scrollTop;
iframeDocument.addEventListener("scroll", recordScroll2);
// Move mouse to the upper autoscroll border belt.
@@ -86,7 +86,7 @@ function autoscrollTestPart1()
function autoscrollTestPart2()
{
- shouldBeTrue("iframe.contentDocument.body.scrollTop < middleTermScrollOffset")
+ shouldBeTrue("iframe.contentDocument.scrollingElement.scrollTop < middleTermScrollOffset")
finishTest();
}

Powered by Google App Engine
This is Rietveld 408576698