OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
5 <script> | 5 <script> |
6 description('Test ensures that documentElement.scrollTop/Left properties are
available by the time DOMContentLoaded event fires.'); | 6 description('Test ensures that documentElement.scrollTop/Left properties are
available by the time DOMContentLoaded event fires.'); |
7 // Navigation steps: | 7 // Navigation steps: |
8 // 1- page gets first loaded and scrolled. | 8 // 1- page gets first loaded and scrolled. |
9 // 2- loaded page away and then 'back'. | 9 // 2- loaded page away and then 'back'. |
10 // Test: ensure that by the time DOMContenLoaded fires (after a back navigat
ion), documentElement.scrollTop/Left are set. | 10 // Test: ensure that by the time DOMContenLoaded fires (after a back navigat
ion), documentElement.scrollTop/Left are set. |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 window.addEventListener('DOMContentLoaded', init, true); | 28 window.addEventListener('DOMContentLoaded', init, true); |
29 window.onunload = function() {} // prevent caching | 29 window.onunload = function() {} // prevent caching |
30 | 30 |
31 var jsTestIsAsync = true; | 31 var jsTestIsAsync = true; |
32 </script> | 32 </script> |
33 <body> | 33 <body> |
34 <div id="overflow" style='width: 9999px; height:9999px; float:left;'></d
iv> | 34 <div id="overflow" style='width: 9999px; height:9999px; float:left;'></d
iv> |
35 <h1 id='console'/> | 35 <h1 id='console'/> |
36 </body> | 36 </body> |
37 <script src="../js/resources/js-test-post.js"></script> | |
38 </html> | 37 </html> |
OLD | NEW |