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

Unified Diff: LayoutTests/fast/dom/resources/check-scroll-position-onload.html

Issue 26472003: Fix improper scrollTop/Left usage in LayoutTests/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@issue_304768
Patch Set: Fix improper scrollTop/Left usage in LayoutTests/ 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/resources/check-scroll-position-onload.html
diff --git a/LayoutTests/fast/dom/resources/check-scroll-position-onload.html b/LayoutTests/fast/dom/resources/check-scroll-position-onload.html
index f45bcf7bcf33e0ad2c24950648a8959017d793d3..421e8f1b1297d76557e6a0466be939bde1cb6cd7 100644
--- a/LayoutTests/fast/dom/resources/check-scroll-position-onload.html
+++ b/LayoutTests/fast/dom/resources/check-scroll-position-onload.html
@@ -7,7 +7,7 @@
<script type="text/javascript">
function load() {
var result = document.getElementById("result");
- result.innerHTML = (document.body.scrollTop == 0) ? "PASS" : "FAIL";
+ result.innerHTML = (document.document.scrollTop == 0) ? "PASS" : "FAIL";
Dan Beam 2013/10/08 19:25:30 documentElement?
tonikitoo_ 2013/10/08 19:52:32 nice catch!
if (window.testRunner) {
testRunner.notifyDone();
}

Powered by Google App Engine
This is Rietveld 408576698