blob: 6eef8ee95a1d0f06096ec8eea26a175a4d8bf67b [file] [log] [blame] [edit]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Test module execution order between tags.');
// Module will be executed asynchronously.
window.jsTestIsAsync = true;
debug('Module is not executed yet.');
onload = function ()
{
shouldBeTrue(`moduleExecuted`);
finishJSTest();
}
</script>
<script src="../../../resources/js-test-post.js"></script>
<script type="module">
debug('Executing an inlined module.');
window.moduleExecuted = true;
</script>
</body>
</html>