async-module.html (604B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>Load dynamically imported async modules</title> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <script> 7 setup({allow_uncaught_exception: true}); 8 var test = async_test("Load async dynamic module") 9 function scriptLoaded() { 10 test.done(); 11 } 12 function testNoError() { 13 test.step(() => assert_unreached("No event expected here")); 14 test.done(); 15 } 16 </script> 17 <script type="module" 18 src="./support/async_module.js" 19 onerror="testNoError()" 20 onload="scriptLoaded()"> 21 </script>