| 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 <body style="min-height: 2000px"> | 3 <body style="min-height: 2000px"> |
| 4 | 4 |
| 5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 description('Tests that we can listen for scroll events on the document in both
the capture and bubble phases.'); | 6 description('Tests that we can listen for scroll events on the document in both
the capture and bubble phases.'); |
| 7 | 7 |
| 8 var triggeredCaptureListener = false; | 8 var triggeredCaptureListener = false; |
| 9 var triggeredBubbleListener = false; | 9 var triggeredBubbleListener = false; |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 { | 28 { |
| 29 if (triggeredCaptureListener && triggeredBubbleListener) { | 29 if (triggeredCaptureListener && triggeredBubbleListener) { |
| 30 debug('Both capture and bubble phase listeners were invoked.'); | 30 debug('Both capture and bubble phase listeners were invoked.'); |
| 31 finishJSTest(); | 31 finishJSTest(); |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 window.scrollTo(200, 200); | 35 window.scrollTo(200, 200); |
| 36 var jsTestIsAsync = true; | 36 var jsTestIsAsync = true; |
| 37 </script> | 37 </script> |
| 38 <script src="../js/resources/js-test-post.js"></script> | |
| 39 </body> | 38 </body> |
| 40 </html> | 39 </html> |
| OLD | NEW |