OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title> AbstractWorker ErrorEvent.filename </title> | |
3 <script src="/resources/testharness.js"></script> | |
4 <script src="/resources/testharnessreport.js"></script> | |
5 <div id=log></div> | |
6 <script> | |
7 // The worker events races with the window's load event; if the worker events | |
8 // arrive first, the harness will detect the error event and fail the test. | |
9 setup({ allow_uncaught_exception: true }); | |
10 | |
11 async_test(function(t) { | |
12 var worker = new Worker('./support/ErrorEvent.js'); | |
13 worker.onerror = t.step_func_done(function(e) { | |
14 var href = location.href; | |
15 var expected = href.substring(0, href.lastIndexOf('/')) + '/support/ErrorEve
nt.js'; | |
16 assert_equals(e.filename, expected); | |
17 }); | |
18 worker.postMessage("Error Message"); | |
19 }); | |
20 </script> | |
OLD | NEW |