c966cfb9d137711f1c5ac9dc2ba674fadc06b035
[WebKit-https.git] / LayoutTests / js / dom / modules / module-src-dynamic.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 with "src" attribute.');
9
10 // Module will be executed asynchronously.
11 window.jsTestIsAsync = true;
12 </script>
13 <script src="../../../resources/js-test-post.js"></script>
14 <script>
15 debug('Module is not executed yet.');
16 (function () {
17     var element = document.createElement('script');
18     element.type = 'module';
19     element.src = './script-tests/module-src-dynamic.js';
20     document.body.appendChild(element);
21 }());
22 </script>
23 </body>
24 </html>