summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/websockets/constructor/001.html
blob: 0c39a0ee71b5968a0c4643a947771a87e2ea22e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<title>WebSockets: new WebSocket() with no args</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=../constants.sub.js></script>
<meta name="variant" content="">
<meta name="variant" content="?wss">
<meta name="variant" content="?wpt_flags=h2">
<div id=log></div>
<script>
test(function() {
  assert_throws_js(TypeError, function(){new WebSocket()});
});
</script>