OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>html-script-module-instantiation-error-3</title> |
| 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="/resources/testharnessreport.js"></script> |
| 7 </head> |
| 8 <body> |
| 9 <h1>html-script-module-instantiation-error-3</h1> |
| 10 <script> |
| 11 |
| 12 setup({allow_uncaught_exception: true}); |
| 13 |
| 14 var log = []; |
| 15 |
| 16 window.addEventListener("error", ev => log.push(ev.error)); |
| 17 |
| 18 var test_load = async_test("test_load"); |
| 19 window.addEventListener("load", test_load.step_func_done(ev => { |
| 20 assert_equals(log.length, 3); |
| 21 assert_true(log[0] instanceof SyntaxError); |
| 22 assert_true(log.every(exn => exn === log[0])); |
| 23 })); |
| 24 |
| 25 </script> |
| 26 <script type="module" src="./cycle-unresolvable.js" nomodule></script> |
| 27 <script type="module" src="./cycle-unresolvable-a.js"></script> |
| 28 <script type="module" src="./cycle-unresolvable.js" async></script> |
| 29 </body> |
| 30 </html> |
OLD | NEW |