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