https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3054fb1e208e4384fc86e818dc2185dcf338e924 authored by Matt Wolenetz on 06 September 2016, 22:54:41 UTC
Merge branch 'master' into plh/media-source/sourcebuffer/remove-TypeError
Tip revision: 3054fb1
007.html
<!doctype html>
<title>WebSockets: new WebSocket(url, null char)</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=../constants.js?pipe=sub></script>
<meta name="variant" content="">
<meta name="variant" content="?wss">
<div id=log></div>
<script>
test(function() {
  assert_throws("SyntaxError", function() {
    new WebSocket(SCHEME_DOMAIN_PORT + '/empty-message',
                  'a' + String.fromCharCode(0) + 'b')
  })
});
</script>
back to top