blob: 94da83ac61a56f9864670226d7660dbe956775cd [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Test import from handler.');
// Module will be executed asynchronously.
window.jsTestIsAsync = true;
</script>
<script>
</script>
<script src="../../../resources/js-test-post.js"></script>
<a id="target" onclick="(import(`./resources/module-src-simple.js`)).then(() => finishJSTest())">MODULE</a>
<script type="module">
debug('Module is not executed yet.');
let anchor = document.getElementById('target');
anchor.dispatchEvent(new MouseEvent('click'));
</script>
</body>
</html>