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

Unified Diff: LayoutTests/fast/workers/worker-onerror-09.html

Issue 30673002: More informative error messages for non-Transferables. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/workers/worker-onerror-09.html
diff --git a/LayoutTests/fast/workers/worker-onerror-01.html b/LayoutTests/fast/workers/worker-onerror-09.html
similarity index 66%
copy from LayoutTests/fast/workers/worker-onerror-01.html
copy to LayoutTests/fast/workers/worker-onerror-09.html
index 4e3edff6256ff37040784e7c149e95a5d91426ed..1cfaffb38f6bb46c6218be2200cc1f58e013d08f 100644
--- a/LayoutTests/fast/workers/worker-onerror-01.html
+++ b/LayoutTests/fast/workers/worker-onerror-09.html
@@ -10,15 +10,16 @@
<body>
<!-- This script's body will be used to build a Blob URL to use as a Worker. -->
<script id="workerCode" type="text/plain">
- } // This is an intentional syntax error.
+ var not_a_sequence = 3;
+ postMessage(2, not_a_sequence);
</script>
<script>
- description("This tests that invalid syntax triggers 'worker.onerror'.");
+ description("This tests that unhandled exceptions in postMessage() are delivered to 'worker.onerror'.");
checkErrorEventInHandler({
- message: "Uncaught SyntaxError: Unexpected token }",
+ message: "Uncaught TypeError: Second argument is not a sequence type",
filename: "[blob: URL]",
- lineno: 2,
+ lineno: 3,
colno: 9,
});
</script>

Powered by Google App Engine
This is Rietveld 408576698