mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +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,10 +1,12 @@
|
|||
// META: script=websocket.sub.js
|
||||
|
||||
var test = async_test("W3C WebSocket API - Create Secure WebSocket - Close the Connection - close(only reason) - INVALID_ACCESS_ERR is thrown");
|
||||
var test = async_test("W3C WebSocket API - Create Secure WebSocket - Close the Connection - close(only reason) - INVALID_ACCESS_ERR is thrown");
|
||||
|
||||
var wsocket = CreateWebSocket(true, false, false);
|
||||
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);
|
||||
wsocket.addEventListener('open', test.step_func(function(evt) {
|
||||
assert_throws("INVALID_ACCESS_ERR", function() {
|
||||
wsocket.close("Close with only reason")
|
||||
});
|
||||
test.done();
|
||||
}), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue