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

Unified Diff: LayoutTests/fast/frames/iframe-scroll-page-up-down.html-disabled

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/frames/iframe-scroll-page-up-down.html-disabled
diff --git a/LayoutTests/fast/frames/iframe-scroll-page-up-down.html-disabled b/LayoutTests/fast/frames/iframe-scroll-page-up-down.html-disabled
index 0950dcd9c2085d9705705701c2144efb026261e3..20d6f5b8dc100a2e35f0f48cdc283528085e45f8 100644
--- a/LayoutTests/fast/frames/iframe-scroll-page-up-down.html-disabled
+++ b/LayoutTests/fast/frames/iframe-scroll-page-up-down.html-disabled
@@ -14,12 +14,12 @@ function test()
window[0][0].scrollTo(0,0);
window[0].scrollTo(0,0);
window.scrollTo(0, document.body.offsetHeight);
- var oldScrollTop = document.body.scrollTop;
+ var oldScrollTop = document.scrollingElement.scrollTop;
var focus1 = window[0][0].document.getElementById("focus1");
focus1.focus();
eventSender.keyDown("pageUp");
var test1Passed = false;
- if (document.body.scrollTop < oldScrollTop)
+ if (document.scrollingElement.scrollTop < oldScrollTop)
test1Passed = true;
// 2nd test: iframes scrolled to bottom, top level document scrolled to top
@@ -27,12 +27,12 @@ function test()
window[0][0].scrollTo(0,window[0][0].document.body.offsetHeight);
window[0].scrollTo(0,window[0].document.body.offsetHeight);
window.scrollTo(0, 0);
- oldScrollTop = document.body.scrollTop
+ oldScrollTop = document.scrollingElement.scrollTop
var focus2 = window[0][0].document.getElementById("focus2");
focus2.focus();
eventSender.keyDown("pageDown");
var test2Passed = false;
- if (document.body.scrollTop > oldScrollTop)
+ if (document.scrollingElement.scrollTop > oldScrollTop)
test2Passed = true;
printResults(test1Passed, test2Passed);

Powered by Google App Engine
This is Rietveld 408576698