Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: LayoutTests/fast/events/window-onerror-11.html

Issue 19962008: Rewrite the 'window.onerror' tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: *facepalm* Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 window.isOnErrorTest = true;
6 </script>
7 <script src="../js/resources/js-test-pre.js"></script>
8 <script src="resources/onerror-test.js"></script>
9 </head>
10 <body>
11 <button onclick="%">Button.</button>
12 <script>
13 description("This test should trigger 'window.onerror' for the syntax er ror in the attribute handler, regardless of how it's set.");
14
15 function callback(errorsHandled) {
16 if (errorsHandled === 3)
17 finishJSTest();
18 }
19
20 dumpOnErrorArgumentValuesAndReturn(true, callback);
21
22 document.write('<button onclick="%">Button 2</button>\n');
23
24 var button3 = document.createElement("button");
25 button3.textContent = "Button 3";
26 button3.setAttribute("onclick", "%");
27 document.body.appendChild(button3);
28
29 var buttons = document.querySelectorAll('button');
30 for (var i = 0; i < buttons.length; ++i) {
31 buttons[i].click();
32 }
33 </script>
34 <script src="../js/resources/js-test-post.js"></script>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/window-onerror-10-expected.txt ('k') | LayoutTests/fast/events/window-onerror-11-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698