mirror of
https://github.com/servo/servo.git
synced 2025-07-01 04:23:39 +01:00
8 lines
309 B
JavaScript
8 lines
309 B
JavaScript
// 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")
|