evaluation-order-1.html (1375B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <script src="resources/evaluation-order-setup.js"></script> 5 6 <script> 7 // Spec: https://html.spec.whatwg.org/C/#run-a-classic-script 8 setupTest("Classic script queueing a microtask then throwing an exception", [ 9 "body", // Step 6. 10 "global-error", // "Report the exception" at Step 7.3. 11 "microtask", // "Clean up after running script" at Step 7.2. 12 ]); 13 </script> 14 <script src="resources/evaluation-order-1-throw.js" 15 onerror="unreachable()" onload="testDone()"></script> 16 17 <script> 18 // Spec: https://html.spec.whatwg.org/C/#run-a-classic-script 19 setupTest("Classic script queueing a microtask", [ 20 "body", // Step 6. 21 "microtask", // "Clean up after running script" at Step 7.2. 22 ]); 23 </script> 24 <script src="resources/evaluation-order-1-nothrow.js" 25 onerror="unreachable()" onload="testDone()"></script> 26 27 28 <script type="module" src="resources/evaluation-order-1-throw-setup.js"></script> 29 <script type="module" src="resources/evaluation-order-1-throw.js" 30 onerror="unreachable()" onload="testDone()"></script> 31 32 <script type="module" src="resources/evaluation-order-1-nothrow-setup.js"></script> 33 <script type="module" src="resources/evaluation-order-1-nothrow.js" 34 onerror="unreachable()" onload="testDone()"></script>