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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/workers/worker-onerror-04.html

Issue 2090953006: [Blink-Workers]Set verbosity of the external exception handler. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code changed as per the comments. Created 4 years, 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 window.isOnErrorTest = true; 5 window.isOnErrorTest = true;
6 </script> 6 </script>
7 <script src="../../resources/js-test.js"></script> 7 <script src="../../resources/js-test.js"></script>
8 <script src="resources/onerror-test.js"></script> 8 <script src="resources/onerror-test.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
11 <!-- This script's body will be used to build a Blob URL to use as a Worker. --> 11 <!-- This script's body will be used to build a Blob URL to use as a Worker. -->
12 <script id="workerCode" type="text/plain"> 12 <script id="workerCode" type="text/plain">
13 onerror = function(message, url, lineno, colno, error) { 13 onerror = function(message, url, lineno, colno, error) {
14 bar.foo = 0; 14 bar.foo = 0;
15 return false; 15 return false;
16 } 16 }
17 17
18 foo.bar = 0; 18 foo.bar = 0;
19 </script> 19 </script>
20 <script> 20 <script>
21 description("This tests that unhandled exceptions in a worker's onerror handler trigger 'worker.onerror'."); 21 description("This tests that unhandled exceptions in a worker's onerror handler don't trigger 'worker.onerror'.");
22 22
23 checkErrorEventInHandler([ 23 checkErrorEventInHandler([
24 // foo.bar = 0 triggers an error that isn't handled. 24 // foo.bar = 0 triggers an error that isn't handled.
25 { 25 {
26 message: "Uncaught ReferenceError: foo is not defined", 26 message: "Uncaught ReferenceError: foo is not defined",
27 filename: "[blob: URL]", 27 filename: "[blob: URL]",
28 lineno: 7, 28 lineno: 7,
29 colno: 9, 29 colno: 9,
30 }, 30 },
31 // the error handler triggers an error
32 { 31 {
33 message: "Uncaught ReferenceError: bar is not defined", 32 message: "Uncaught ReferenceError: foo is not defined",
34 filename: "[blob: URL]", 33 filename: "[blob: URL]",
35 lineno: 3, 34 lineno: 7,
36 colno: 13, 35 colno: 9,
37 }]); 36 }]);
37
38 </script> 38 </script>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698