1 // META: script=websocket.sub.js
3 var test = async_test("Create Secure WebSocket - Close the Connection - close(code, 'reason more than 123 bytes') - SYNTAX_ERR is thrown");
5 var wsocket = CreateWebSocket(true, false, false);
6 var isOpenCalled = false;
8 wsocket.addEventListener('open', test.step_func(function(evt) {
9 var reason = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123";
10 assert_equals(reason.length, 124);
11 assert_throws("SYNTAX_ERR", function() {
12 wsocket.close(1000, reason)