https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7f3f3847e626a9c2baee64aa15ee2cc74fc7a60c authored by Fredrik Söderquist on 13 December 2018, 14:54:19 UTC
Regression test for crbug.com/626744
Tip revision: 7f3f384
Secure-Close-onlyReason.any.js
// META: script=websocket.sub.js

var test = async_test("Create Secure WebSocket - Close the Connection - close(only reason) - INVALID_ACCESS_ERR is thrown");

var wsocket = CreateWebSocket(true, false, false);

wsocket.addEventListener('open', test.step_func(function(evt) {
  assert_throws("INVALID_ACCESS_ERR", function() {
    wsocket.close("Close with only reason")
  });
  test.done();
}), true);
back to top