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

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: More informative error messages for non-Transferables. 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-08.html b/LayoutTests/fast/workers/worker-onerror-09.html
similarity index 60%
copy from LayoutTests/fast/workers/worker-onerror-08.html
copy to LayoutTests/fast/workers/worker-onerror-09.html
index 1923d288b04ba5ea707afce3a329265e1846f730..37060bdbc6bae6462961ff6230885db4185a8be6 100644
--- a/LayoutTests/fast/workers/worker-onerror-08.html
+++ b/LayoutTests/fast/workers/worker-onerror-09.html
@@ -10,18 +10,17 @@
<body>
<!-- This script's body will be used to build a Blob URL to use as a Worker. -->
<script id="workerCode" type="text/plain">
- setTimeout(function() {
- throw new Error("Exception in setTimeout callback");
- }, 0);
+ var not_a_sequence = 3;
+ postMessage(2, not_a_sequence);
</script>
<script>
- description("This tests that exceptions in setTimeout triggers 'worker.onerror'.");
+ description("This tests that unhandled exceptions in postMessage() are delivered to 'worker.onerror'.");
checkErrorEventInHandler({
- message: "Uncaught Error: Exception in setTimeout callback",
+ message: "Uncaught TypeError: Failed to execute 'postMessage' on 'WorkerGlobalScope': Second argument is neither an array, nor does it have indexed properties.",
filename: "[blob: URL]",
lineno: 3,
- colno: 19,
+ colno: 9,
});
</script>
<script src="../js/resources/js-test-post.js"></script>
« no previous file with comments | « LayoutTests/fast/workers/worker-multi-port-expected.txt ('k') | LayoutTests/fast/workers/worker-onerror-09-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698