diff options
Diffstat (limited to 'testing/web-platform/tests/webmessaging/with-ports/026.html')
-rw-r--r-- | testing/web-platform/tests/webmessaging/with-ports/026.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webmessaging/with-ports/026.html b/testing/web-platform/tests/webmessaging/with-ports/026.html new file mode 100644 index 000000000..cf5c5e18a --- /dev/null +++ b/testing/web-platform/tests/webmessaging/with-ports/026.html @@ -0,0 +1,13 @@ +<!doctype html> +<title>object with length as transferable</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id=log></div> +<script> +test(function() { + assert_throws(new TypeError(), function() { + postMessage('', '*', {length:1}); + }); +}); +</script> + |