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

Unified Diff: LayoutTests/fast/scroll-behavior/subframe-element-scrollTo.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/scroll-behavior/subframe-element-scrollTo.html
diff --git a/LayoutTests/fast/scroll-behavior/subframe-element-scrollTo.html b/LayoutTests/fast/scroll-behavior/subframe-element-scrollTo.html
index 065f66445ac2e1b97aa5e6e50e9b4e60c2d445d9..631058d6c388102005a6c5d5d72276c7bd21db0d 100644
--- a/LayoutTests/fast/scroll-behavior/subframe-element-scrollTo.html
+++ b/LayoutTests/fast/scroll-behavior/subframe-element-scrollTo.html
@@ -34,9 +34,9 @@
scrollToOptions.left = testCase.x;
if (testCase.y)
scrollToOptions.top = testCase.y;
- subframe.contentDocument.body.scrollTo(scrollToOptions);
+ subframe.contentDocument.scrollingElement.scrollTo(scrollToOptions);
} else {
- subframe.contentDocument.body.scrollTo(testCase.x, testCase.y);
+ subframe.contentDocument.scrollingElement.scrollTo(testCase.x, testCase.y);
}
}
@@ -68,7 +68,7 @@
}
var subframe = document.getElementById("subframe");
- var scrollBehaviorTest = new ScrollBehaviorTest(subframe.contentDocument.body,
+ var scrollBehaviorTest = new ScrollBehaviorTest(subframe.contentDocument.scrollingElement,
subframe.contentDocument,
testCases,
getEndPosition,

Powered by Google App Engine
This is Rietveld 408576698