blob: 20a9452cb5102f0e7578c3070ee5be2811c983c7 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Test import from setTimeout.');
// Module will be executed asynchronously.
window.jsTestIsAsync = true;
window.passedCocoa = null;
function loaded(cocoa)
{
window.passedCocoa = cocoa;
shouldBeTrue(`window.imported`);
shouldBe(`window.passedCocoa`, `window.exportedCocoa`);
finishJSTest();
}
</script>
<script>
</script>
<script src="../../../resources/js-test-post.js"></script>
<script type="module">
setTimeout(`import("./resources/import-src-simple.js").then((ns) => loaded(ns.ok))`, 0);
</script>
</body>
</html>