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

Unified Diff: LayoutTests/fast/loader/scroll-position-restored-on-reload-at-load-event.html

Issue 891523002: ScrollTopLeftInterop should not be marked experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 11 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/loader/scroll-position-restored-on-reload-at-load-event.html
diff --git a/LayoutTests/fast/loader/scroll-position-restored-on-reload-at-load-event.html b/LayoutTests/fast/loader/scroll-position-restored-on-reload-at-load-event.html
index ddcb986a29f6b43ce4025b977af65af816c1ea31..0a2a64953d41b3be67d40f548f678e5c535fe388 100644
--- a/LayoutTests/fast/loader/scroll-position-restored-on-reload-at-load-event.html
+++ b/LayoutTests/fast/loader/scroll-position-restored-on-reload-at-load-event.html
@@ -3,16 +3,16 @@
<head>
<script src="../../resources/js-test.js"></script>
<script>
- description('Test ensures that documentElement.scrollTop/Left properties are available by the time DOMContentLoaded event fires.');
+ description('Test ensures that body.scrollTop/Left properties are available by the time DOMContentLoaded event fires.');
// Navigation steps:
// 1- page gets first loaded and scrolled.
// 2- reload is performed.
- // Test: ensure that by the time DOMContenLoaded fires (after a reload navigation), documentElement.scrollTop/Left are set.
+ // Test: ensure that by the time DOMContenLoaded fires (after a reload navigation), body.scrollTop/Left are set.
function init(evt) {
if (window.name == 'second/load') {
- shouldBe('document.documentElement.scrollTop', '2000');
- shouldBe('document.documentElement.scrollLeft', '1000');
+ shouldBe('document.body.scrollTop', '2000');
+ shouldBe('document.body.scrollLeft', '1000');
window.name = "";
if (window.testRunner)

Powered by Google App Engine
This is Rietveld 408576698