mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision ea14651f262003177d0ba5819bd2806a1327b12a
This commit is contained in:
parent
847115ba04
commit
816185f094
272 changed files with 5766 additions and 2855 deletions
|
@ -1,11 +1,13 @@
|
|||
// META: script=websocket.sub.js
|
||||
|
||||
var test = async_test("W3C WebSocket API - Create Secure WebSocket - Close the Connection - close(1005) - see '7.1.5. The WebSocket Connection Close Code' in http://www.ietf.org/rfc/rfc6455.txt");
|
||||
var test = async_test("W3C WebSocket API - Create Secure WebSocket - Close the Connection - close(1005) - see '7.1.5. The WebSocket Connection Close Code' in http://www.ietf.org/rfc/rfc6455.txt");
|
||||
|
||||
var wsocket = CreateWebSocket(true, false, false);
|
||||
var isOpenCalled = false;
|
||||
var wsocket = CreateWebSocket(true, false, false);
|
||||
var isOpenCalled = false;
|
||||
|
||||
wsocket.addEventListener('open', test.step_func(function (evt) {
|
||||
assert_throws("INVALID_ACCESS_ERR", function () { wsocket.close(1005, "1005 - reserved code") });
|
||||
test.done();
|
||||
}), true);
|
||||
wsocket.addEventListener('open', test.step_func(function(evt) {
|
||||
assert_throws("INVALID_ACCESS_ERR", function() {
|
||||
wsocket.close(1005, "1005 - reserved code")
|
||||
});
|
||||
test.done();
|
||||
}), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue