f480890ff091d2ccff91bbbdb8ce3ab233b4f28a
[WebKit-https.git] / LayoutTests / js / dom / modules / module-execution-order-mixed.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="../../../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <script>
8 description('Test module execution order between mixed tags.');
9 debug('We keep the execution order between modules.');
10 window.count = 0;
11
12 // Module will be executed asynchronously.
13 window.jsTestIsAsync = true;
14 debug('Module is not executed yet.');
15 </script>
16 <script src="../../../resources/js-test-post.js"></script>
17 <script type="module" src="script-tests/module-execution-order-mixed.js"></script>
18 <script type="module">
19 shouldBe("count++", "4");
20 </script>
21 <script type="module" src="script-tests/module-execution-order-mixed-2.js"></script>
22 <script type="module">
23 shouldBe("count++", "6");
24 finishJSTest();
25 </script>
26 </body>
27 </html>