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