Index: LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html |
diff --git a/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html b/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html |
index 1b4cbc17f7fbc4e91d5752d7fd1d809f94e05d44..32ffa34dd390c7524a7f7654c6e46dd9011c8cc7 100644 |
--- a/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html |
+++ b/LayoutTests/fast/loader/scroll-position-restored-on-back-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- loaded page away and then 'back'. |
- // Test: ensure that by the time DOMContenLoaded fires (after a back navigation), documentElement.scrollTop/Left are set. |
+ // Test: ensure that by the time DOMContenLoaded fires (after a back 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) |