blob: 9be518deb397aa540e06a8170a9541ff98213de7 [file] [log] [blame]
<!DOCTYPE HTML>
<meta charset=utf-8>
<title>Long Animation Frame Timing: source location for inline classic 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>
promise_test(async () => {
const script = await loaf_with_inline_script("classic-script");
assert_equals(script.sourceURL, location.href);
assert_greater_than(script.sourceCharPosition, 0);
}, "Source location should be available for inline classic scripts");
</script>
<script>
busy_wait();
</script>
</body>