| Index: LayoutTests/fast/events/window-onerror-11.html
|
| diff --git a/LayoutTests/fast/events/window-onerror-11.html b/LayoutTests/fast/events/window-onerror-11.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..054b6db9b1ce10289fa5214e20a739765a5eba24
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/events/window-onerror-11.html
|
| @@ -0,0 +1,36 @@
|
| +<!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>
|
| + <button onclick="%">Button.</button>
|
| + <script>
|
| + description("This test should trigger 'window.onerror' for the syntax error in the attribute handler, regardless of how it's set.");
|
| +
|
| + function callback(errorsHandled) {
|
| + if (errorsHandled === 3)
|
| + finishJSTest();
|
| + }
|
| +
|
| + dumpOnErrorArgumentValuesAndReturn(true, callback);
|
| +
|
| + document.write('<button onclick="%">Button 2</button>\n');
|
| +
|
| + var button3 = document.createElement("button");
|
| + button3.textContent = "Button 3";
|
| + button3.setAttribute("onclick", "%");
|
| + document.body.appendChild(button3);
|
| +
|
| + var buttons = document.querySelectorAll('button');
|
| + for (var i = 0; i < buttons.length; ++i) {
|
| + buttons[i].click();
|
| + }
|
| + </script>
|
| + <script src="../js/resources/js-test-post.js"></script>
|
| +</body>
|
| +</html>
|
|
|