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

Unified Diff: LayoutTests/fast/dom/anchor-without-content.html

Issue 25039006: document.documentElement.scrollTop/Left is zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: document.documentElement.scrollTop/Left is zero Created 7 years, 2 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 ca91a5524c3cea7d554285bd89cf8453f8b86315..deabbdce3afe8c0835bbbe8f3c7632900cc016d9 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.documentElement.scrollTop;
document.getElementById('goto-1').click();
- if (document.body.scrollTop > scrollTopBeforeClick)
+ if (document.documentElement.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.documentElement.scrollTop;
document.getElementById('goto-2').click();
- if (document.body.scrollTop > scrollTopBeforeClick)
+ if (document.documentElement.scrollTop > scrollTopBeforeClick)
testPassed('Clicking link 2 scrolled to block 2.');
else
testFailed('Clicking link 2 didn\'t scroll as expected.');

Powered by Google App Engine
This is Rietveld 408576698