Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / workers / worker-onerror-02.html
blob94cd726a163c412b9e9b3bb3865e26b313b5b5dc
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 foo.bar = 0;
14 </script>
15 <script>
16 description("This tests that unhandled exceptions trigger 'worker.onerror'.");
18 checkErrorEventInHandler({
19 message: "Uncaught ReferenceError: foo is not defined",
20 filename: "[blob: URL]",
21 lineno: 2,
22 colno: 9,
23 });
24 </script>
25 </body>
26 </html>