| 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 0a2a64953d41b3be67d40f548f678e5c535fe388..5db54eea9a9a84beb7d1fcddc3d74398981665e8 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 body.scrollTop/Left properties are available by the time DOMContentLoaded event fires.');
|
| + description('Test ensures that scrollingElement.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), body.scrollTop/Left are set.
|
| + // Test: ensure that by the time DOMContenLoaded fires (after a reload navigation), scrollingElement.scrollTop/Left are set.
|
|
|
| function init(evt) {
|
| if (window.name == 'second/load') {
|
| - shouldBe('document.body.scrollTop', '2000');
|
| - shouldBe('document.body.scrollLeft', '1000');
|
| + shouldBe('document.scrollingElement.scrollTop', '2000');
|
| + shouldBe('document.scrollingElement.scrollLeft', '1000');
|
| window.name = "";
|
|
|
| if (window.testRunner)
|
|
|