| Index: LayoutTests/fast/events/window-onerror-10.html
|
| diff --git a/LayoutTests/fast/events/window-onerror-10.html b/LayoutTests/fast/events/window-onerror-10.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e4fd3cbd852c7752cbf2bbb9f84bf2139f76ddc6
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/events/window-onerror-10.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <script src="../js/resources/js-test-pre.js"></script>
|
| + <script src="resources/onerror-test.js"></script>
|
| +</head>
|
| +<body onload="throwException('exception in onload');">
|
| + <p>This test should trigger 'window.onerror' multiple times, and successfully handle the errors.</p>
|
| + <script>
|
| + window.jsTestIsAsync = true;
|
| +
|
| + function callback(errorsHandled) {
|
| + if (errorsHandled === 3 && window.testRunner)
|
| + finishJSTest();
|
| + }
|
| +
|
| + DumpOnErrorArgumentValuesAndReturn(true, callback);
|
| +
|
| + setTimeout(function () { throwException('exception in setTimeout'); }, 0);
|
| + throwException('Inline exception.');
|
| + </script>
|
| + <script src="../js/resources/js-test-post.js"></script>
|
| +</body>
|
| +</html>
|
|
|