https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 829648dee8a4ea94b40c75e1b270b8ed9611bbd3 authored by Liam Quin on 25 June 2018, 19:13:57 UTC
Update META.yml
Tip revision: 829648d
constructor.any.js
// META: script=websocket.sub.js

test(function() {
  var ws = new WebSocket("ws://" + __SERVER__NAME + ":" + __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.")
back to top