summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/errorhandling-parseerror-dependentmultiple.html
blob: 7775aeabb4960a9823e0113243534ac250c2a73c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<html>
<head>
    <title>html-script-module-errorHandling-parseError-DependentMultiple</title>
    <script src="errorhandling-parseerror-common.js"></script>
</head>
<body>
    <script type="module" onerror="errorHandler(event)">

        // No parse errors in the root module, just in the dependent module
        import test from "./errorhandling-parseerror-dependentmultiple.js";
        document._errorReported = "shouldn't have run dependent module";

    </script>
    <script type="module" onerror="errorHandler(event)">

        // With the broken dependent module already acquired, try to import it
        // again from another root.  This root should be unwound appropriately.
        import test from "./errorhandling-parseerror-dependentmultiple.js";
        document._errorReported = "really shouldn't have run dependent module";

    </script>
</body>
</html>