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