mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-11 04:39:14 +00:00
22 lines
652 B
HTML
22 lines
652 B
HTML
<!DOCTYPE html>
|
|
<meta charset=utf-8>
|
|
<title>Test error thrown when an import cannot be resolved</title>
|
|
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
|
<script>
|
|
var hadTypeError = false;
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
window.onerror = handleError;
|
|
|
|
function handleError(message, url, line, column, error) {
|
|
hadTypeError = error instanceof TypeError;
|
|
}
|
|
|
|
function testError() {
|
|
ok(hadTypeError, 'Check that a TypeError was thrown');
|
|
SimpleTest.finish();
|
|
}
|
|
</script>
|
|
<script type="module" src="module_badImport.js"></script>
|
|
<body onload='testError()'></body>
|