| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 | 6 |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 | 8 |
| 9 <button id="upper_target">Upper Target</button> | 9 <button id="upper_target">Upper Target</button> |
| 10 <div style="border: 1px solid #000; height: 5000px;">5000-pixel box</div> | 10 <div style="border: 1px solid #000; height: 5000px;">5000-pixel box</div> |
| 11 <button id="lower_target">Lower Target</button> | 11 <button id="lower_target">Lower Target</button> |
| 12 <div style="border: 1px solid #000; height: 5000px;">5000-pixel box</div> |
| 12 | 13 |
| 13 <div id="console"></div> | 14 <div id="console"></div> |
| 14 | 15 |
| 15 <script> | 16 <script> |
| 16 description("Tests that scrolling to make an element visible successfully scroll
s the main window."); | 17 description("Tests that scrolling to make an element visible successfully scroll
s the main window."); |
| 17 | 18 |
| 18 function runTest() { | 19 function runTest() { |
| 19 var upperTarget = document.getElementById("upper_target"); | 20 var upperTarget = document.getElementById("upper_target"); |
| 20 var lowerTarget = document.getElementById("lower_target"); | 21 var lowerTarget = document.getElementById("lower_target"); |
| 21 | 22 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 48 | 49 |
| 49 finishJSTest(); | 50 finishJSTest(); |
| 50 } | 51 } |
| 51 | 52 |
| 52 runTest(); | 53 runTest(); |
| 53 | 54 |
| 54 </script> | 55 </script> |
| 55 | 56 |
| 56 </body> | 57 </body> |
| 57 </html> | 58 </html> |
| OLD | NEW |