| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 2 onerror = function(a, b, c, d) { | |
| 3 postMessage([a, b, c, d]); | |
| 4 return true; // the error is "handled" | |
| 5 } | |
| 6 function x() { | |
| 7 y(); | |
| 8 } | |
| 9 x(); | |
| 10 /* | |
| 11 --> | |
| 12 <!doctype html> | |
| 13 <title>onerror, "handled"</title> | |
| 14 <script src="/resources/testharness.js"></script> | |
| 15 <script src="/resources/testharnessreport.js"></script> | |
| 16 <div id="log"></div> | |
| 17 <script> | |
| 18 async_test(function() { | |
| 19 var worker = new Worker('#'); | |
| 20 worker.onmessage = this.step_func(function(e) { | |
| 21 assert_equals(typeof e.data[0], 'string', 'first argument'); | |
| 22 assert_equals(e.data[1], document.URL+'#', 'second argument'); | |
| 23 assert_equals(typeof e.data[2], 'number', 'third argument'); | |
| 24 assert_equals(typeof e.data[3], 'number', 'fourth argument'); | |
| 25 setTimeout(this.step_func(function() { | |
| 26 this.done(); | |
| 27 }), 100); | |
| 28 }); | |
| 29 worker.onerror = this.step_func(function(e) { | |
| 30 assert_unreached(); | |
| 31 }); | |
| 32 }); | |
| 33 </script> | |
| 34 <!-- | |
| 35 */ | |
| 36 //--> | |
| OLD | NEW |