Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / worker-onerror-04.html
blob8e8361b67dbd4bbdb897fd70f544a1cd40157c08
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 window.isOnErrorTest = true;
6 </script>
7 <script src="../../resources/js-test.js"></script>
8 <script src="resources/onerror-test.js"></script>
9 </head>
10 <body>
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) {
14 bar.foo = 0;
15 return false;
18 foo.bar = 0;
19 </script>
20 <script>
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]",
28 lineno: 7,
29 colno: 9,
31 // the error handler triggers an error
33 message: "Uncaught ReferenceError: bar is not defined",
34 filename: "[blob: URL]",
35 lineno: 3,
36 colno: 13,
37 }]);
38 </script>
39 </body>
40 </html>