blob: 0d6fa4671f96005ec2ba5e1c02e06dd825f7023f [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Test that document.write does not work inside module.');
// Module will be executed asynchronously.
window.jsTestIsAsync = true;
</script>
<script>
debug('Module is not executed yet.');
</script>
<script src="../../../resources/js-test-post.js"></script>
<script type="module">
document.write("TEST FAILED");
finishJSTest();
</script>
</body>
</html>