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

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

Issue 2831943002: bindings: Port bindings/core/v8 away from ToImplArray APIs. (Closed)
Patch Set: Check for exception in SerializedScriptValue Created 3 years, 8 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 var not_a_sequence = 3; 13 var not_a_sequence = 3;
14 postMessage(2, not_a_sequence); 14 postMessage(2, not_a_sequence);
15 </script> 15 </script>
16 <script> 16 <script>
17 description("This tests that unhandled exceptions in postMessage() are d elivered to 'worker.onerror'."); 17 description("This tests that unhandled exceptions in postMessage() are d elivered to 'worker.onerror'.");
18 18
19 checkErrorEventInHandler({ 19 checkErrorEventInHandler({
20 message: "Uncaught TypeError: Failed to execute 'postMessage' on 'De dicatedWorkerGlobalScope': The 2nd argument is neither an array, nor does it hav e indexed properties.", 20 message: "Uncaught TypeError: Failed to execute 'postMessage' on 'De dicatedWorkerGlobalScope': The provided value cannot be converted to a sequence. ",
21 filename: "[blob: URL]", 21 filename: "[blob: URL]",
22 lineno: 3, 22 lineno: 3,
23 colno: 9, 23 colno: 9,
24 }); 24 });
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698