blob: 84fc902426bcf081c7cfd75cff2d4b5f1dbe2b4d [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Test module execution order between mixed tags.');
debug('We keep the execution order between modules.');
window.count = 0;
// Module will be executed asynchronously.
window.jsTestIsAsync = true;
debug('Module is not executed yet.');
</script>
<script src="../../../resources/js-test-post.js"></script>
<script type="module" src="resources/module-execution-order-mixed.js"></script>
<script type="module">
shouldBe("count++", "4");
</script>
<script type="module" src="resources/module-execution-order-mixed-2.js"></script>
<script type="module">
shouldBe("count++", "6");
finishJSTest();
</script>
</body>
</html>