Index: LayoutTests/fast/events/window-onerror-09.html |
diff --git a/LayoutTests/fast/events/window-onerror-09.html b/LayoutTests/fast/events/window-onerror-09.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..18421a47f7c1d8167fea4e8b35472961c96f8e56 |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-09.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script> |
+ window.isOnErrorTest = true; |
+ </script> |
+ <script src="../js/resources/js-test-pre.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> |
+ <script src="../js/resources/js-test-post.js"></script> |
+</body> |
+</html> |