blob: 75dd93fe41413f15d2d72fe01f19bfbd0d245d44 [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>
<script>
description("This test should trigger 'window.onerror', and successfully handle the error.");
dumpOnErrorArgumentValuesAndReturn(true);
var evt = document.createEvent("Event");
evt.initEvent("error", true, true);
window.dispatchEvent(evt);
</script>
</body>
</html>