mirror of
https://github.com/servo/servo.git
synced 2025-08-23 14:25:33 +01:00
Update web-platform-tests to revision 5084587f6b05bf99ad09e7844be66dcc61070cdf
This commit is contained in:
parent
6d42d2f1e8
commit
7d1071a6a4
408 changed files with 8968 additions and 2608 deletions
|
@ -0,0 +1,13 @@
|
|||
// META: script=websocket.sub.js
|
||||
|
||||
var test = async_test("W3C WebSocket API - Create WebSocket - Close the Connection - close(code, 'reason more than 123 bytes') - SYNTAX_ERR is thrown");
|
||||
|
||||
var wsocket = CreateWebSocket(false, false, false);
|
||||
var isOpenCalled = false;
|
||||
|
||||
wsocket.addEventListener('open', test.step_func(function (evt) {
|
||||
var reason = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123";
|
||||
assert_equals(reason.length, 124);
|
||||
assert_throws("SYNTAX_ERR", function () { wsocket.close(1000, reason) });
|
||||
test.done();
|
||||
}), true);
|
Loading…
Add table
Add a link
Reference in a new issue