| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script src="../js/resources/js-test-pre.js"></script> | 2 <script src="../js/resources/js-test-pre.js"></script> |
| 3 <script> | 3 <script> |
| 4 function getCenterFor(element) | 4 function getCenterFor(element) |
| 5 { | 5 { |
| 6 var rect = element.getBoundingClientRect(); | 6 var rect = element.getBoundingClientRect(); |
| 7 return { x : parseInt((rect.left + rect.right) / 2) , y : parseInt((rect.top +
rect.bottom) / 2)}; | 7 return { x : parseInt((rect.left + rect.right) / 2) , y : parseInt((rect.top +
rect.bottom) / 2)}; |
| 8 } | 8 } |
| 9 | 9 |
| 10 function runTest() | 10 function runTest() |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 shouldBe("document.body.scrollTop > 0", "true"); | 32 shouldBe("document.body.scrollTop > 0", "true"); |
| 33 testRunner.notifyDone(); | 33 testRunner.notifyDone(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 </script> | 36 </script> |
| 37 <style> | 37 <style> |
| 38 </style> | 38 </style> |
| 39 <body onload="runTest();"> | 39 <body onload="runTest();"> |
| 40 <input type="radio" id="myradio">Click the text below and then try to scroll.<br
> | 40 <input type="radio" id="myradio">Click the text below and then try to scroll.<br
> |
| 41 <div id="console"></div> | 41 <div id="console"></div> |
| 42 <script src="../js/resources/js-test-post.js"></script> | |
| 43 <br><br><br><br><br><br><br><br><br><br> | 42 <br><br><br><br><br><br><br><br><br><br> |
| 44 <span tabindex=1 id="sp">My span</span> | 43 <span tabindex=1 id="sp">My span</span> |
| 45 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br> | 44 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br> |
| 46 </body> | 45 </body> |
| 47 </html> | 46 </html> |
| 48 | 47 |
| OLD | NEW |