| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 function log(message) | |
| 5 { | |
| 6 document.getElementById('console').appendChild(document.createTextNode(messa
ge + "\n")); | |
| 7 } | |
| 8 | |
| 9 function runTest() | |
| 10 { | |
| 11 log("Test DataView in worker."); | |
| 12 | |
| 13 var worker = new Worker("resources/worker-data-view-test.js"); | |
| 14 worker.onmessage = function(event) { | |
| 15 log(event.data); | |
| 16 if (window.testRunner) | |
| 17 testRunner.notifyDone(); | |
| 18 }; | |
| 19 worker.postMessage("start"); | |
| 20 } | |
| 21 | |
| 22 if (window.testRunner) { | |
| 23 testRunner.dumpAsText(); | |
| 24 testRunner.waitUntilDone(); | |
| 25 } | |
| 26 </script> | |
| 27 </head> | |
| 28 <body onload="runTest()"> | |
| 29 <pre id='console'></pre> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |