https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4f05c011be2ef38886088a09748b90dd2476d40f authored by Mugdha Lakhani on 18 October 2018, 15:50:21 UTC
[Background Fetch] Support access to active fetches.
Tip revision: 4f05c01
Send-before-open.any.js
// META: script=websocket.sub.js

test(function() {
  var wsocket = CreateWebSocket(false, false, false);
  assert_throws("INVALID_STATE_ERR", function() {
    wsocket.send("Message to send")
  });
}, "W3C WebSocket API - Send data on a WebSocket before connection is opened - INVALID_STATE_ERR is returned")
back to top