OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <title>handling for 404 response</title> |
| 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <div id=log></div> |
| 6 <script> |
| 7 setup({allow_uncaught_exception: true}); |
| 8 |
| 9 async_test(function() { |
| 10 var worker = new Worker('404_worker'); |
| 11 worker.onerror = this.step_func(function(e) { this.done(); }); |
| 12 }, 'worker'); |
| 13 |
| 14 async_test(function() { |
| 15 var shared = new SharedWorker('404_shared'); |
| 16 // NOTE: this handler will not fire, as runtime scripting errors |
| 17 // are not forwarded to SharedWorker objects, but instead reported to the user
directly. |
| 18 shared.onerror = this.step_func(function(e) { assert_unreached(); }, shared, '
error'); |
| 19 step_timeout(this.step_func(function() { this.done(); }), 5000); |
| 20 }, 'shared'); |
| 21 </script> |
OLD | NEW |