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

Side by Side Diff: LayoutTests/fast/events/window-onerror-10.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 onload="throwException('exception in onload');">
12 <script>
13 description("This test should trigger 'window.onerror' multiple times, a nd successfully handle the errors.");
14
15 function callback(errorsHandled) {
16 if (errorsHandled === 3)
17 finishJSTest();
18 }
19
20 dumpOnErrorArgumentValuesAndReturn(true, callback);
21
22 setTimeout(function () { throwException('exception in setTimeout'); }, 0 );
23 throwException('Inline exception.');
24 </script>
25 <script src="../js/resources/js-test-post.js"></script>
26 </body>
27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/window-onerror-09-expected.txt ('k') | LayoutTests/fast/events/window-onerror-10-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698