OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 function x() { |
| 3 y(); |
| 4 } |
| 5 x(); |
| 6 /* |
| 7 --> |
| 8 <!doctype html> |
| 9 <title>onerror, "not handled" with only window.onerror defined</title> |
| 10 <script src="/resources/testharness.js"></script> |
| 11 <script src="/resources/testharnessreport.js"></script> |
| 12 <div id="log"></div> |
| 13 <script> |
| 14 setup({ |
| 15 allow_uncaught_exception: true, |
| 16 }); |
| 17 async_test(function() { |
| 18 var worker = new Worker('#'); |
| 19 window.onerror = this.step_func(function(a, b, c, d) { |
| 20 assert_equals(typeof a, 'string', 'first argument'); |
| 21 assert_equals(b, document.URL+'#', 'second argument'); |
| 22 assert_equals(typeof c, 'number', 'third argument'); |
| 23 assert_equals(typeof d, 'number', 'fourth argument'); |
| 24 this.done(); |
| 25 return true; // "handled" |
| 26 }); |
| 27 }); |
| 28 </script> |
| 29 <!-- |
| 30 */ |
| 31 //--> |
OLD | NEW |