OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../resources/js-test.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 description("This tests that errors from nested importScripts have the expected provenance."); | |
9 | |
10 self.jsTestIsAsync = true; | |
11 | |
12 var worker = startWorker("resources/importScripts-1.js"); | |
13 var event; | |
14 worker.onerror = function (e) { | |
15 event = e; | |
16 shouldBeEqualToString("event.type", "error"); | |
17 shouldBeTrue("event.filename.indexOf('invalidScript.js') >= 0"); | |
18 finishJSTest(); | |
19 }; | |
20 </script> | |
21 </body> | |
22 </html> | |
OLD | NEW |