OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Once as classic script, once as module script</title> |
| 3 |
| 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script> |
| 7 window.log = []; |
| 8 |
| 9 const test_load = async_test( |
| 10 "Test that evaluating something as classic script does not prevent " + |
| 11 "it from being evaluated as module script."); |
| 12 window.addEventListener("load", test_load.step_func_done(ev => { |
| 13 assert_array_equals(log, [window, undefined]); |
| 14 })); |
| 15 </script> |
| 16 <script type="module" src="this.js"></script> |
| 17 <script src="this.js"></script> |
OLD | NEW |