| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <input type="file" name="file" id="file" onchange="onInputFileChange()"> | 4 <input type="file" name="file" id="file" onchange="onInputFileChange()"> |
| 5 <pre id='console'></pre> | 5 <pre id='console'></pre> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 function log(message) | 8 function log(message) |
| 9 { | 9 { |
| 10 document.getElementById('console').appendChild(document.createTextNode(messa
ge + "\n")); | 10 document.getElementById('console').appendChild(document.createTextNode(messa
ge + "\n")); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 { | 26 { |
| 27 log("Received error from worker: " + event.message); | 27 log("Received error from worker: " + event.message); |
| 28 if (window.testRunner) | 28 if (window.testRunner) |
| 29 testRunner.notifyDone(); | 29 testRunner.notifyDone(); |
| 30 } | 30 } |
| 31 worker.postMessage(file); | 31 worker.postMessage(file); |
| 32 } | 32 } |
| 33 | 33 |
| 34 function runTests() | 34 function runTests() |
| 35 { | 35 { |
| 36 // Mouse events only work after an initial layout |
| 37 document.body.offsetLeft; |
| 36 eventSender.beginDragWithFiles(['../resources/UTF8.txt']); | 38 eventSender.beginDragWithFiles(['../resources/UTF8.txt']); |
| 37 eventSender.mouseMoveTo(10, 10); | 39 eventSender.mouseMoveTo(10, 10); |
| 38 eventSender.mouseUp(); | 40 eventSender.mouseUp(); |
| 39 } | 41 } |
| 40 | 42 |
| 41 if (window.eventSender) { | 43 if (window.eventSender) { |
| 42 testRunner.dumpAsText(); | 44 testRunner.dumpAsText(); |
| 43 testRunner.waitUntilDone(); | 45 testRunner.waitUntilDone(); |
| 44 window.onload = runTests; | 46 window.onload = runTests; |
| 45 } | 47 } |
| 46 </script> | 48 </script> |
| 47 </body> | 49 </body> |
| 48 </html> | 50 </html> |
| OLD | NEW |