empty-attributes-clause.html (713B)
1 <!DOCTYPE html> 2 <title>Handling of empty import attributes clause</title> 3 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script> 7 window.log = []; 8 9 window.addEventListener("error", ev => log.push(ev.error)); 10 11 const test_load = async_test( 12 "Test that no error occurs when an empty import attributes clause is provided."); 13 window.addEventListener("load", test_load.step_func_done(ev => { 14 assert_array_equals(window.log, ["hello", "empty-attributes-clause"]); 15 })); 16 17 function unreachable() { log.push("unexpected"); } 18 </script> 19 <script type="module" src="./empty-attributes-clause.js" onerror="unreachable()"></script>