Revision e4afbd50ef7ac19bf2b499930be1df0b5d044f7a authored by James Graham on 25 April 2018, 16:28:52 UTC, committed by jgraham on 25 April 2018, 18:25:55 UTC
1 parent 1452fe3
Raw File
Secure-Close-2999-reason.any.js
// META: script=websocket.sub.js

        var test = async_test("W3C WebSocket API - Create Secure WebSocket - Close the Connection - close(2999, 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(2999, "Close not in range 3000-4999") });
            test.done();
        }), true);
back to top