| This is a testharness.js-based test. |
| PASS Test postMessage with no port. |
| PASS Test postMessage with no arguments. |
| PASS Test postMessage with no ports and empty array. |
| PASS Test postMessage with two ports. |
| PASS Test empty postMessage throws exception. |
| PASS Test postMessage with null ports throws exception. |
| FAIL Test postMessage with incorrect ports throws exception assert_throws_dom: postMessage with incorrect ports should throw exception. function "function() { worker.postMessage("notAPort", |
| [channel.port1, {}, |
| channel.port2]); }" threw object "TypeError: Failed to execute 'postMessage' on 'Worker': Value at index 1 does not have a transferable type." that is not a DOMException DataCloneError: property "code" is equal to undefined, expected 25 |
| FAIL Test postMessage without sequence throws exception assert_throws_dom: postMessage without sequence should throw exception. function "function() { worker.postMessage("notASequence", [{length: 3}]) }" threw object "TypeError: Failed to execute 'postMessage' on 'Worker': Value at index 0 does not have a transferable type." that is not a DOMException DataCloneError: property "code" is equal to undefined, expected 25 |
| FAIL Test postMessage on channel with previous failed postMessage calls. assert_throws_dom: postMessage with incorrect ports should throw exception. function "function() { worker.postMessage("notAPort", |
| [channel.port1, {}, |
| channel.port2]); }" threw object "TypeError: Failed to execute 'postMessage' on 'Worker': Value at index 1 does not have a transferable type." that is not a DOMException DataCloneError: property "code" is equal to undefined, expected 25 |
| Harness: the test ran to completion. |
| |