Index: LayoutTests/fast/events/window-onerror-06.html |
diff --git a/LayoutTests/fast/events/window-onerror-06.html b/LayoutTests/fast/events/window-onerror-06.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c502bb2c1764e89d81c97b46773c23ac20c46e8a |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-06.html |
@@ -0,0 +1,26 @@ |
+<!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' only once, without diving into horrible recursion."); |
+ |
+ function callback(errorNumber) { |
+ if (errorNumber > 1) |
+ testFailed("window.onerror should only be called once in this test."); |
+ throwException("Nested exception."); |
+ } |
+ |
+ dumpOnErrorArgumentValuesAndReturn(true, callback); |
+ |
+ throwException("Original exception."); |
+ </script> |
+ <script src="../js/resources/js-test-post.js"></script> |
+</body> |
+</html> |