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

Unified Diff: LayoutTests/fast/scroll-behavior/subframe-element-scrollBy.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-scrollBy.html
diff --git a/LayoutTests/fast/scroll-behavior/subframe-element-scrollBy.html b/LayoutTests/fast/scroll-behavior/subframe-element-scrollBy.html
index 4068c65767f2a876321cc6449b2313f7d8ae2924..2a50d661002b3830b7b0f82abae1bf7a9187f030 100644
--- a/LayoutTests/fast/scroll-behavior/subframe-element-scrollBy.html
+++ b/LayoutTests/fast/scroll-behavior/subframe-element-scrollBy.html
@@ -33,9 +33,9 @@
scrollToOptions.left = testCase.x;
if (testCase.y)
scrollToOptions.top = testCase.y;
- subframe.contentDocument.body.scrollBy(scrollToOptions);
+ subframe.contentDocument.scrollingElement.scrollBy(scrollToOptions);
} else {
- subframe.contentDocument.body.scrollBy(testCase.x, testCase.y);
+ subframe.contentDocument.scrollingElement.scrollBy(testCase.x, testCase.y);
}
}
@@ -67,7 +67,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