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

Unified Diff: LayoutTests/fast/images/imagemap-scroll.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/images/imagemap-scroll.html
diff --git a/LayoutTests/fast/images/imagemap-scroll.html b/LayoutTests/fast/images/imagemap-scroll.html
index 12ebaa32e2bb99beff5391dcda38dd6175be014c..36d389ab291a61d59cba911f37d4bed5b4fc1b5d 100644
--- a/LayoutTests/fast/images/imagemap-scroll.html
+++ b/LayoutTests/fast/images/imagemap-scroll.html
@@ -11,26 +11,26 @@ function runTest()
{
if (window.testRunner)
testRunner.dumpAsText();
- if (document.body.scrollTop == 0)
+ if (document.scrollingElement.scrollTop == 0)
log("PASS: Document is starting scrolled to top.");
else
- log("FAIL: Document is starting scrolled to " + document.body.scrollTop + ".");
+ log("FAIL: Document is starting scrolled to " + document.scrollingElement.scrollTop + ".");
document.getElementById("area").focus();
- if (document.body.scrollTop > 4000 && document.body.scrollTop < 6000)
+ if (document.scrollingElement.scrollTop > 4000 && document.scrollingElement.scrollTop < 6000)
log("PASS: Focusing area element caused the image to scroll into view.");
else
- log("FAIL: Document is scrolled to " + document.body.scrollTop + " after focusing area element.");
- document.body.scrollTop = 0;
- if (document.body.scrollTop == 0)
+ log("FAIL: Document is scrolled to " + document.scrollingElement.scrollTop + " after focusing area element.");
+ document.scrollingElement.scrollTop = 0;
+ if (document.scrollingElement.scrollTop == 0)
log("PASS: Document is scrolled to top once again.");
else
- log("FAIL: Document should be scrolled to top but is scrolled to " + document.body.scrollTop + ".");
+ log("FAIL: Document should be scrolled to top but is scrolled to " + document.scrollingElement.scrollTop + ".");
document.getElementById("area").blur();
- if (document.body.scrollTop == 0)
+ if (document.scrollingElement.scrollTop == 0)
log("PASS: Document is still scrolled to top after removing focus from area element.");
else
- log("FAIL: Document is scrolled to " + document.body.scrollTop + " after removing focus from area element.");
- document.body.scrollTop = 0;
+ log("FAIL: Document is scrolled to " + document.scrollingElement.scrollTop + " after removing focus from area element.");
+ document.scrollingElement.scrollTop = 0;
document.body.removeChild(document.getElementById("test"));
log("TEST COMPLETE");
}

Powered by Google App Engine
This is Rietveld 408576698