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

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

Issue 19962008: Rewrite the 'window.onerror' tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: js-test-pre 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 src="../js/resources/js-test-pre.js"></script>
5 <script src="resources/onerror-test.js"></script>
6 </head>
7 <body>
8 <p>This test should trigger 'window.onerror', and successfully handle the er ror.</p>
9 <script>
10 DumpOnErrorArgumentValuesAndReturn(true);
11
12 var evt = document.createEvent("Event");
13 evt.initEvent("error", true, true);
14 window.dispatchEvent(evt);
15 </script>
16 <script src="../js/resources/js-test-post.js"></script>
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698