https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b43aa57353147e6ffc3799651de2b246835c2a8a authored by Mike West on 24 July 2018, 12:41:46 UTC
Correctly propagate request initiator for 'noopener'
Tip revision: b43aa57
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