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

Side by Side Diff: LayoutTests/fast/events/window-onerror-12.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.jsTestIsAsync = true;
6 window.isOnErrorTest = true;
7 </script>
8 <script src="../js/resources/js-test-pre.js"></script>
9 <script src="resources/onerror-test.js"></script>
10 </head>
11 <body>
12 <button onclick="null.mu()">Button.</button>
13 <script>
14 description("This test should trigger 'window.onerror' for the exception in the attribute handler, regardless of how it's set.");
15
16 function callback(errorsHandled) {
17 console.log(errorsHandled);
18 if (errorsHandled === 3)
19 finishJSTest();
20 }
21
22 dumpOnErrorArgumentValuesAndReturn(true, callback);
23
24 document.write('<button onclick="null.mu()">Button 2</button>\n');
25
26 var button3 = document.createElement("button");
27 button3.textContent = "Button 3";
28 button3.setAttribute("onclick", "null.mu()");
29 document.body.appendChild(button3);
30
31 var buttons = document.querySelectorAll('button');
32 for (var i = 0; i < buttons.length; ++i) {
33 buttons[i].click();
34 }
35 </script>
36 <script src="../js/resources/js-test-post.js"></script>
37 </body>
38 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/window-onerror-11-expected.txt ('k') | LayoutTests/fast/events/window-onerror-12-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698