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

Unified Diff: LayoutTests/http/tests/navigation/resources/frame-with-anchor.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/http/tests/navigation/resources/frame-with-anchor.html
diff --git a/LayoutTests/http/tests/navigation/resources/frame-with-anchor.html b/LayoutTests/http/tests/navigation/resources/frame-with-anchor.html
index f47190b630e788a361c6451d0349d1a8266e998e..2f6c663b910c4071790a45711546218d43859ff7 100644
--- a/LayoutTests/http/tests/navigation/resources/frame-with-anchor.html
+++ b/LayoutTests/http/tests/navigation/resources/frame-with-anchor.html
@@ -11,13 +11,13 @@
setTimeout(function() {
// Make sure that the body is taller than the viewport (i.e. scrolling is
// required).
- shouldBeTrue('document.body.offsetHeight > document.documentElement.clientHeight');
+ shouldBeTrue('document.documentElement.offsetHeight > document.documentElement.clientHeight');
// We should be scrolled at least a little bit
- shouldBeTrue('document.body.scrollTop > 0');
+ shouldBeTrue('document.documentElement.scrollTop > 0');
// And the bottom of the viewable area should be at least 2000 pixels from the top, due to the spacer element above.
- shouldBeTrue('document.body.scrollTop + document.documentElement.clientHeight > 2000');
+ shouldBeTrue('document.documentElement.scrollTop + document.documentElement.clientHeight > 2000');
finishJSTest();
}, 0);
@@ -37,4 +37,4 @@
<a name="anchor1">This is an anchor point named "anchor1</a>.
<script src="../../../js-test-resources/js-test-post.js"></script>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698