| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 window.isOnErrorTest = true; | 5 window.isOnErrorTest = true; |
| 6 </script> | 6 </script> |
| 7 <script src="../js/resources/js-test-pre.js"></script> | 7 <script src="../js/resources/js-test-pre.js"></script> |
| 8 <script src="resources/onerror-test.js"></script> | 8 <script src="resources/onerror-test.js"></script> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| 11 <!-- This script's body will be used to build a Blob URL to use as a Worker.
--> | 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"> | 12 <script id="workerCode" type="text/plain"> |
| 13 } // This is an intentional syntax error. | 13 } // This is an intentional syntax error. |
| 14 </script> | 14 </script> |
| 15 <script> | 15 <script> |
| 16 description("This tests that invalid syntax triggers 'worker.onerror'.")
; | 16 description("This tests that invalid syntax triggers 'worker.onerror'.")
; |
| 17 | 17 |
| 18 checkErrorEventInHandler({ | 18 checkErrorEventInHandler({ |
| 19 message: "Uncaught SyntaxError: Unexpected token }", | 19 message: "Uncaught SyntaxError: Unexpected token }", |
| 20 filename: "[blob: URL]", | 20 filename: "[blob: URL]", |
| 21 lineno: 2, | 21 lineno: 2, |
| 22 colno: 9, | 22 colno: 9, |
| 23 }); | 23 }); |
| 24 </script> | 24 </script> |
| 25 <script src="../js/resources/js-test-post.js"></script> | |
| 26 </body> | 25 </body> |
| 27 </html> | 26 </html> |
| OLD | NEW |