| <!DOCTYPE html> |
| <script src="../../resources/js-test-pre.js"></script> |
| <script src="resources/worker-create-common.js"></script> |
| <script> |
| |
| var jsTestIsAsync = true; |
| |
| description('Tests that calling DedicatedWorkerGlobalScope.postMessage() without parameter throws an exception'); |
| |
| var worker = createWorker(); |
| worker.postMessage("eval postMessage()"); |
| worker.postMessage("eval DONE"); |
| |
| worker.onmessage = function(evt) { |
| if (!/DONE/.test(evt.data)) |
| debug(evt.data.replace(new RegExp("/.*LayoutTests"), "<...>")); |
| else |
| finishJSTest(); |
| }; |
| |
| </script> |
| <script src="../../resources/js-test-post.js"></script> |