Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/scripting-1/the-script-element/execution-timing/120.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html><head>
<title>scheduler: script created without a window </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<div id="log"></div>
<script>
var t = async_test();
var doc = document.implementation.createHTMLDocument("");
doc.write("<script>t.step(function() {assert_unreached()})<\/script>");
document.body.appendChild(doc.head.firstChild);
onload = function() {t.done()}
</script>