https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 622b6fd97abd374fdd18a783d12a684f3fa98e23 authored by Emil A Eklund on 18 December 2018, 22:56:53 UTC
Return resolved-value for ComputedStyle line-height
Tip revision: 622b6fd
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