blob: 39d8b86ad4f79dbcd40a43827e13c51b6f02c467 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
window.isOnErrorTest = true;
</script>
<script src="../../resources/js-test.js"></script>
<script src="resources/onerror-test.js"></script>
</head>
<body>
<!-- This script's body will be used to build a Blob URL to use as a Worker. -->
<script id="workerCode" type="text/plain">
} // This is an intentional syntax error.
</script>
<script>
description("This tests that invalid syntax triggers 'worker.onerror'.");
checkErrorEventInHandler({
message: "Uncaught SyntaxError: Unexpected token '}'",
filename: "[blob: URL]",
lineno: 2,
colno: 9,
});
</script>
</body>
</html>