blob: 57cfd5e5a1a9788af4638a7ec619497376aa7444 (
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
25
|
<!DOCTYPE html>
<meta charset=utf-8>
<title>Test an import map with an nonexisting module specifier</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="importmap">
{
"imports": {
"bare": "./good/module_0.mjs"
}
}
</script>
<script>
SimpleTest.waitForExplicitFinish();
window.onerror = (event, src, lineno, colno, error) => {
ok(error instanceof TypeError, "Should be a TypeError");
SimpleTest.finish();
};
</script>
<script type="module" src="module_importMap_with_nonexisting_module.mjs"></script>
|