summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/websockets/constructor.any.js
blob: 0cef2065f6d8a052c4721faef03a5d169cb4ab01 (plain)
1
2
3
4
5
6
7
8
9
10
// META: script=constants.sub.js
// META: variant=?default
// META: variant=?wss
// META: variant=?wpt_flags=h2

test(function() {
  var ws = new WebSocket(SCHEME_DOMAIN_PORT + "/" + __PATH,
    "echo", "Stray argument")
  assert_true(ws instanceof WebSocket, "Expected a WebSocket instance.")
}, "Calling the WebSocket constructor with too many arguments should not throw.")