| OLD | NEW |
| 1 <html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 2 <head> | 4 <head> |
| 3 <script> | |
| 4 if (window.testRunner) | |
| 5 testRunner.dumpEditingCallbacks(); | |
| 6 </script> | |
| 7 | |
| 8 <style> | 5 <style> |
| 9 body { margin: 0; padding: 0 } | 6 body { margin: 0; padding: 0 } |
| 10 </style> | 7 </style> |
| 11 <script type="text/javascript"> | 8 <script type="text/javascript"> |
| 12 function step4() | 9 test(function() { |
| 13 { | 10 if (!window.eventSender) |
| 11 return; |
| 12 eventSender.mouseMoveTo(50, 10); |
| 13 eventSender.mouseDown(); |
| 14 eventSender.mouseUp(); | 14 eventSender.mouseUp(); |
| 15 testRunner.notifyDone(); | |
| 16 } | |
| 17 | |
| 18 function step3() | |
| 19 { | |
| 20 eventSender.mouseDown(); | 15 eventSender.mouseDown(); |
| 21 window.setTimeout(step4, 1); | |
| 22 } | |
| 23 | |
| 24 function step2() | |
| 25 { | |
| 26 eventSender.mouseUp(); | 16 eventSender.mouseUp(); |
| 27 window.setTimeout(step3, 100); | 17 }) |
| 28 } | |
| 29 | |
| 30 function step1() | |
| 31 { | |
| 32 eventSender.mouseDown(); | |
| 33 window.setTimeout(step2, 1); | |
| 34 } | |
| 35 | |
| 36 function step0() | |
| 37 { | |
| 38 eventSender.mouseMoveTo(50, 10); | |
| 39 window.setTimeout(step1, 1); | |
| 40 } | |
| 41 | |
| 42 onload = step0; | |
| 43 testRunner.waitUntilDone(); | |
| 44 </script> | 18 </script> |
| 45 </head> | 19 </head> |
| 46 <body> | 20 <body> |
| 47 <pre> | 21 <pre> |
| 48 Test. | 22 Test. |
| 49 Test. | 23 Test. |
| 24 <div id="log"></div> |
| 50 </body> | 25 </body> |
| 51 </html> | 26 </html> |
| 52 <!-- http://bugzilla.opendarwin.org/show_bug.cgi?id=3739 - only testing for cras
hing, not the actual results. --> | 27 <!-- http://bugzilla.opendarwin.org/show_bug.cgi?id=3739 - only testing for cras
hing, not the actual results. --> |
| OLD | NEW |