| OLD | NEW |
| 1 <body> | 1 <body> |
| 2 <div style="height: 1000px"></div> | 2 <div style="height: 1000px"></div> |
| 3 <a id="a" href="#bottom">Link to bottom</a> | 3 <a id="a" href="#bottom">Link to bottom</a> |
| 4 <div style="height: 1000px"></div> | 4 <div style="height: 1000px"></div> |
| 5 <a name="bottom"></a> | 5 <a name="bottom"></a> |
| 6 <script src="/js-test-resources/js-test.js"></script> | 6 <script src="/js-test-resources/js-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 setPrintTestResultsLazily(); |
| 9 |
| 8 if (window.testRunner) { | 10 if (window.testRunner) { |
| 9 window.jsTestIsAsync = true; | 11 window.jsTestIsAsync = true; |
| 10 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
| 11 testRunner.waitUntilDone(); | 13 testRunner.waitUntilDone(); |
| 12 } | 14 } |
| 13 | 15 |
| 14 window.onload = function() { | 16 window.onload = function() { |
| 15 if (window.eventSender) { | 17 if (window.eventSender) { |
| 16 function clickLink() { | 18 function clickLink() { |
| 17 var a = document.getElementById("a"); | 19 var a = document.getElementById("a"); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 if (!haveSeenHashChange) { | 32 if (!haveSeenHashChange) { |
| 31 haveSeenHashChange = true; | 33 haveSeenHashChange = true; |
| 32 history.back(); | 34 history.back(); |
| 33 } else { | 35 } else { |
| 34 document.body.appendChild(document.createTextNode("scrollY should be 800
: " + (window.scrollY == 800 ? "PASS" : "FAIL"))); | 36 document.body.appendChild(document.createTextNode("scrollY should be 800
: " + (window.scrollY == 800 ? "PASS" : "FAIL"))); |
| 35 finishJSTest(); | 37 finishJSTest(); |
| 36 } | 38 } |
| 37 } | 39 } |
| 38 </script> | 40 </script> |
| 39 </body> | 41 </body> |
| OLD | NEW |