| <!DOCTYPE HTML> |
| <meta charset=utf-8> |
| <title>Long Animation Frame Timing: source location for inline module scripts</title> |
| <meta name="timeout" content="long"> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="resources/utils.js"></script> |
| |
| <body> |
| <script type=module> |
| busy_wait(); |
| </script> |
| <script> |
| promise_test(async () => { |
| const script = await loaf_with_inline_script("module-script"); |
| assert_equals(script.sourceURL, location.href); |
| assert_greater_than(script.sourceCharPosition, 0); |
| }, "Source location should be available for inline classic scripts"); |
| </script> |
| </body> |