blob: 9ce06d99ef04ed6548cd13ccad2ebae111e1d8e6 [file] [log] [blame]
<!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.');
function onLoad()
{
shouldBeTrue(`moduleExecuted`);
finishJSTest();
}
</script>
<script src="../../../resources/js-test-post.js"></script>
<script type="module" onload="onLoad()">
debug('Executing an inlined module.');
window.moduleExecuted = true;
</script>
</body>
</html>