Implement dynamic-import for WebCore
[WebKit-https.git] / LayoutTests / js / dom / modules / module-load-event-with-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 script.onload will be fired when the module tag with src loads and executes.');
9 // Module will be executed asynchronously.
10 window.jsTestIsAsync = true;
11 debug('Module is not executed yet.');
12 function onLoad()
13 {
14     shouldBeTrue(`moduleExecuted`);
15     finishJSTest();
16 }
17 </script>
18 <script src="../../../resources/js-test-post.js"></script>
19 <script type="module" onload="onLoad()" src="resources/module-load-event-with-src.js"></script>
20 </body>
21 </html>