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> |