Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/base/test/jsmodules/chrome.toml
<!DOCTYPE html>
<meta charset=utf-8>
<title>Test the error message from import()</title>
<script>
SimpleTest.waitForExplicitFinish();
async function testLoaded() {
await import("./404.js").catch((error) => {
ok(error instanceof TypeError, "Should be a TypeError.");
ok(error.message.match(/404.js/), "Should have the filename.");
SimpleTest.finish();
});
}
</script>
<body onload='testLoaded()'></body>