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

Unified Diff: LayoutTests/fast/scroll-behavior/subframe-scrollTop.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-scrollTop.html
diff --git a/LayoutTests/fast/scroll-behavior/subframe-scrollTop.html b/LayoutTests/fast/scroll-behavior/subframe-scrollTop.html
index d94011b88f2a0d05722e0602ad99fce1befb3125..920ab67d0ca41f18289d99ed7247c046c1f09788 100644
--- a/LayoutTests/fast/scroll-behavior/subframe-scrollTop.html
+++ b/LayoutTests/fast/scroll-behavior/subframe-scrollTop.html
@@ -20,7 +20,7 @@
function jsScroll(testCase) {
var subframe = document.getElementById("subframe");
- subframe.contentDocument.body.scrollTop = testCase.y;
+ subframe.contentDocument.scrollingElement.scrollTop = testCase.y;
}
const testScrolls = [
@@ -40,7 +40,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