https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 988503ce0658e4f1b072d76bfe34ebdc8336d028 authored by Luke Bjerring on 19 March 2018, 16:57:43 UTC
Handle options for add_untested_idls
Tip revision: 988503c
constructor.html
<!DOCTYPE html>
<title>WebSocket constructor</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="websocket.sub.js"></script>
<div id="log"></div>
<script>
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.")
</script>
back to top