5 window
.isOnErrorTest
= true;
7 <script src=
"../../resources/js-test.js"></script>
8 <script src=
"resources/onerror-test.js"></script>
11 <!-- This script's body will be used to build a Blob URL to use as a Worker. -->
12 <script id=
"workerCode" type=
"text/plain">
13 onerror = function(message, url, lineno, colno, error) {
21 description("This tests that unhandled exceptions in a worker's onerror handler trigger 'worker.onerror'.");
23 checkErrorEventInHandler([
24 // foo.bar = 0 triggers an error that isn't handled.
26 message
: "Uncaught ReferenceError: foo is not defined",
27 filename
: "[blob: URL]",
31 // the error handler triggers an error
33 message
: "Uncaught ReferenceError: bar is not defined",
34 filename
: "[blob: URL]",