| 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..b31e3a8879508d93fe0b9ebbb875274e5a52e44f
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/events/window-onerror-11.html
|
| @@ -0,0 +1,36 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <script src="resources/onerror-test.js"></script>
|
| + <script>
|
| + if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| + var handledErrors = 0;
|
| + function callback() {
|
| + handledErrors++;
|
| + if (handledErrors === 3 && window.testRunner)
|
| + testRunner.notifyDone();
|
| + }
|
| +
|
| + DumpOnErrorArgumentValuesAndReturn(true, callback);
|
| + </script>
|
| +</head>
|
| +<body>
|
| + <p>This test should trigger 'window.onerror' fo the syntax error in the attribute handler, regardless of how it's set.</p>
|
| + <button onclick="%">Button.</button>
|
| + <script>
|
| + 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>
|
| +</body>
|
| +</html>
|
|
|