| OLD | NEW |
| (Empty) |
| 1 <body> | |
| 2 <p>Test importScripts with error.</p> | |
| 3 <div id=result></div> | |
| 4 <script> | |
| 5 function log(message) | |
| 6 { | |
| 7 document.getElementById("result").innerHTML += message + "<br>"; | |
| 8 } | |
| 9 | |
| 10 if (window.testRunner) { | |
| 11 testRunner.dumpAsText(); | |
| 12 testRunner.waitUntilDone(); | |
| 13 } | |
| 14 | |
| 15 var worker = new Worker('resources/worker-importScripts-error.js'); | |
| 16 | |
| 17 worker.onerror = function(error) | |
| 18 { | |
| 19 var properties = []; | |
| 20 for (property in error) { | |
| 21 if (property == 'timeStamp') | |
| 22 continue; | |
| 23 properties.push('<br/>' + property + ': ' + error[property]); | |
| 24 } | |
| 25 properties.sort(); | |
| 26 log(properties); | |
| 27 | |
| 28 if (window.testRunner) { | |
| 29 // Allow the console message to be dumped out. | |
| 30 setTimeout(function() { | |
| 31 testRunner.notifyDone(); | |
| 32 }, 0); | |
| 33 } | |
| 34 } | |
| 35 </script> | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |