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

Unified Diff: LayoutTests/fast/dom/anchor-without-content.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/dom/anchor-without-content.html
diff --git a/LayoutTests/fast/dom/anchor-without-content.html b/LayoutTests/fast/dom/anchor-without-content.html
index caa9cdf3b39477422a83b9489435bf3745e1ab8c..9dcc673085e65cec321ce9ee57f0bfcfbdc47fac 100644
--- a/LayoutTests/fast/dom/anchor-without-content.html
+++ b/LayoutTests/fast/dom/anchor-without-content.html
@@ -25,16 +25,16 @@
<span class="spacer"></span>
<script>
- var scrollTopBeforeClick = document.body.scrollTop;
+ var scrollTopBeforeClick = document.scrollingElement.scrollTop;
document.getElementById('goto-1').click();
- if (document.body.scrollTop > scrollTopBeforeClick)
+ if (document.scrollingElement.scrollTop > scrollTopBeforeClick)
testPassed('Clicking link 1 scrolled to block 1.');
else
testFailed('Clicking link 1 didn\'t scroll as expected.');
- var scrollTopBeforeClick = document.body.scrollTop;
+ var scrollTopBeforeClick = document.scrollingElement.scrollTop;
document.getElementById('goto-2').click();
- if (document.body.scrollTop > scrollTopBeforeClick)
+ if (document.scrollingElement.scrollTop > scrollTopBeforeClick)
testPassed('Clicking link 2 scrolled to block 2.');
else
testFailed('Clicking link 2 didn\'t scroll as expected.');
« no previous file with comments | « LayoutTests/fast/css/zoom-body-scroll-expected.txt ('k') | LayoutTests/fast/dom/scroll-position-for-new-loads.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698