Implement dynamic-import for WebCore
[WebKit-https.git] / LayoutTests / js / dom / modules / nomodule-dynamic-classic-src.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 dynamic "src" classic script with nomodule.');
9 window.executed = false;
10
11 // Module will be executed asynchronously.
12 window.jsTestIsAsync = true;
13 </script>
14 <script src="../../../resources/js-test-post.js"></script>
15 <script>
16 (function () {
17     var element = document.createElement('script');
18     element.noModule = true;
19     element.src = './resources/error-classic-script.js';
20     document.body.appendChild(element);
21     setTimeout(function () {
22         shouldBeFalse(`executed`);
23         finishJSTest();
24     }, 100);
25 }());
26 </script>
27 </body>
28 </html>