| 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")); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function onInputFileChange() | 13 function onInputFileChange() |
| 14 { | 14 { |
| 15 var file = document.getElementById("file").files[0]; | 15 var file = document.getElementById("file").files[0]; |
| 16 var worker = new Worker("resources/worker-apply-blob-url-to-xhr.js"); | 16 var worker = new Worker("../resources/apply-blob-url-to-xhr.js"); |
| 17 worker.onmessage = function(event) | 17 worker.onmessage = function(event) |
| 18 { | 18 { |
| 19 log(event.data); | 19 log(event.data); |
| 20 if (event.data == "DONE") { | 20 if (event.data == "DONE") { |
| 21 if (window.testRunner) | 21 if (window.testRunner) |
| 22 testRunner.notifyDone(); | 22 testRunner.notifyDone(); |
| 23 } | 23 } |
| 24 } | 24 } |
| 25 worker.onerror = function(event) | 25 worker.onerror = function(event) |
| 26 { | 26 { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 | 40 |
| 41 if (window.eventSender) { | 41 if (window.eventSender) { |
| 42 testRunner.dumpAsText(); | 42 testRunner.dumpAsText(); |
| 43 testRunner.waitUntilDone(); | 43 testRunner.waitUntilDone(); |
| 44 window.onload = runTests; | 44 window.onload = runTests; |
| 45 } | 45 } |
| 46 </script> | 46 </script> |
| 47 </body> | 47 </body> |
| 48 </html> | 48 </html> |
| OLD | NEW |