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..9b99adad5bda537212bc91063a6b2359823cdf20 |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-06.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="../js/resources/js-test-pre.js"></script> |
+ <script src="resources/onerror-test.js"></script> |
+</head> |
+<body> |
+ <p>This test should trigger 'window.onerror' only once, without diving into horrible recursion.</p> |
+ <script> |
+ function callback(errorNumber) { |
+ if (errorNumber > 0) |
+ 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> |