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

Unified Diff: LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes.html

Issue 25741004: set and get scrollTop/Left through documentElement and body should be symmetric, according to the d… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: set and get scrollTop/Left through documentElement and body should be symmetric, according to the d… 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/Element/scrollTop-scrollLeft-strict-quirks-modes.html
diff --git a/LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes.html b/LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes.html
index 318e9f3ef47b1bc98e96c4b1fa8bf1c857920878..28e93e7340ed9cb859578e80851d6cabf681267e 100644
--- a/LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes.html
+++ b/LayoutTests/fast/dom/Element/scrollTop-scrollLeft-strict-quirks-modes.html
@@ -19,11 +19,15 @@
shouldBe("iframeStrict.contentDocument.documentElement.scrollLeft", "4000");
shouldBe("iframeStrict.contentDocument.body.scrollTop", "0");
shouldBe("iframeStrict.contentDocument.body.scrollLeft", "0");
+ shouldBe("iframeStrict.contentWindow.pageYOffset", "5000");
+ shouldBe("iframeStrict.contentWindow.pageXOffset", "4000");
shouldBe("iframeQuirks.contentDocument.documentElement.scrollTop", "0");
shouldBe("iframeQuirks.contentDocument.documentElement.scrollLeft", "0");
shouldBe("iframeQuirks.contentDocument.body.scrollTop", "5000");
shouldBe("iframeQuirks.contentDocument.body.scrollLeft", "4000");
+ shouldBe("iframeQuirks.contentWindow.pageYOffset", "5000");
+ shouldBe("iframeQuirks.contentWindow.pageXOffset", "4000");
finishJSTest();
}
var jsTestIsAsync = true;

Powered by Google App Engine
This is Rietveld 408576698