| CONSOLE ERROR: line 7: Uncaught ReferenceError: foo is not defined |
| This tests that unhandled exceptions in a worker's onerror handler trigger 'worker.onerror'. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| |
| Page-level worker.onerror handler triggered: |
| PASS errorEvent.message is "Uncaught ReferenceError: foo is not defined" |
| PASS stripURL(errorEvent.filename) is "[blob: URL]" |
| PASS errorEvent.lineno is 7 |
| PASS errorEvent.colno is 9 |
| PASS errorEvent.error is null |
| |
| Page-level worker.onerror handler triggered: |
| PASS errorEvent.message is "Uncaught ReferenceError: bar is not defined" |
| PASS stripURL(errorEvent.filename) is "[blob: URL]" |
| PASS errorEvent.lineno is 3 |
| PASS errorEvent.colno is 13 |
| PASS errorEvent.error is null |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |