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

Unified Diff: LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.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/resources/scrollable-iframe-strict.html
diff --git a/LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html b/LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html
index c410d3767ea23d125309578cd59195ce483539d6..7211b03050d4fa2b6c524d39ba28aed1036552dc 100644
--- a/LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html
+++ b/LayoutTests/fast/dom/Element/resources/scrollable-iframe-strict.html
@@ -8,7 +8,15 @@
</style>
<script>
function scroll() {
- window.scrollTo(4000,5000);
+ document.documentElement.scrollTop = 5000;
+ document.documentElement.scrollLeft = 4000;
+
+ // The calls below should not take effect, given
+ // that setting scrollTop/Left on the body node
+ // is no-op in strict-mode.
+ document.body.scrollTop = 1;
+ document.body.scrollLeft = 1;
+
parent.verifyTest()
}
</script>

Powered by Google App Engine
This is Rietveld 408576698