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

Side by Side Diff: LayoutTests/fast/events/window-onerror-06.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 <script>
12 description("This test should trigger 'window.onerror' only once, withou t diving into horrible recursion.");
13
14 function callback(errorNumber) {
15 if (errorNumber > 1)
16 testFailed("window.onerror should only be called once in this te st.");
17 throwException("Nested exception.");
18 }
19
20 dumpOnErrorArgumentValuesAndReturn(true, callback);
21
22 throwException("Original exception.");
23 </script>
24 <script src="../js/resources/js-test-post.js"></script>
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/window-onerror-05-expected.txt ('k') | LayoutTests/fast/events/window-onerror-06-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698