mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25: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,20 +1,20 @@
|
|||
// META: script=websocket.sub.js
|
||||
|
||||
[
|
||||
[0, "0"],
|
||||
[500, "500"],
|
||||
[NaN, "NaN"],
|
||||
["string", "String"],
|
||||
[null, "null"],
|
||||
[0x10000 + 1000, "2**16+1000"],
|
||||
[0, "0"],
|
||||
[500, "500"],
|
||||
[NaN, "NaN"],
|
||||
["string", "String"],
|
||||
[null, "null"],
|
||||
[0x10000 + 1000, "2**16+1000"],
|
||||
].forEach(function(t) {
|
||||
[true, false].forEach(function(secure) {
|
||||
test(function() {
|
||||
var ws = CreateWebSocket(secure, false, false);
|
||||
assert_throws("InvalidAccessError", function () {
|
||||
ws.close(t[0]);
|
||||
});
|
||||
wsocket.onerror = this.unreached_func();
|
||||
}, t[1] + " on a " + (secure ? "secure" : "insecure") + " websocket");
|
||||
});
|
||||
[true, false].forEach(function(secure) {
|
||||
test(function() {
|
||||
var ws = CreateWebSocket(secure, false, false);
|
||||
assert_throws("InvalidAccessError", function() {
|
||||
ws.close(t[0]);
|
||||
});
|
||||
wsocket.onerror = this.unreached_func();
|
||||
}, t[1] + " on a " + (secure ? "secure" : "insecure") + " websocket");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue