817224bf0468c5fae8d5275fb0d7edac290bdee9
[WebKit-https.git] / LayoutTests / js / dom / modules / module-execution-error-inside-dependent-module-should-be-propagated-to-onerror.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 window.onerror will be fired when the dependent module throw an error.');
9 // Module will be executed asynchronously.
10 window.jsTestIsAsync = true;
11 debug('Module is not executed yet.');
12 window.onerror = function () {
13     finishJSTest();
14 }
15 </script>
16 <script src="../../../resources/js-test-post.js"></script>
17 <script type="module">
18 import "./script-tests/module-execution-error-inside-dependent-module-should-be-propagated-to-onerror.js"
19 testFailed("executed");
20 </script>
21 </body>
22 </html>