mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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,22 +1,32 @@
|
|||
// META: script=websocket.sub.js
|
||||
|
||||
var wsocket;
|
||||
test(function() {
|
||||
assert_throws("SYNTAX_ERR", function () { wsocket = new WebSocket("/echo") });
|
||||
}, "Url is /echo - should throw SYNTAX_ERR");
|
||||
var wsocket;
|
||||
test(function() {
|
||||
assert_throws("SYNTAX_ERR", function() {
|
||||
wsocket = new WebSocket("/echo")
|
||||
});
|
||||
}, "Url is /echo - should throw SYNTAX_ERR");
|
||||
|
||||
test(function () {
|
||||
assert_throws("SYNTAX_ERR", function () { wsocket = new WebSocket("mailto:microsoft@microsoft.com") });
|
||||
}, "Url is a mail address - should throw SYNTAX_ERR");
|
||||
test(function() {
|
||||
assert_throws("SYNTAX_ERR", function() {
|
||||
wsocket = new WebSocket("mailto:microsoft@microsoft.com")
|
||||
});
|
||||
}, "Url is a mail address - should throw SYNTAX_ERR");
|
||||
|
||||
test(function () {
|
||||
assert_throws("SYNTAX_ERR", function () { wsocket = new WebSocket("about:blank") });
|
||||
}, "Url is about:blank - should throw SYNTAX_ERR");
|
||||
test(function() {
|
||||
assert_throws("SYNTAX_ERR", function() {
|
||||
wsocket = new WebSocket("about:blank")
|
||||
});
|
||||
}, "Url is about:blank - should throw SYNTAX_ERR");
|
||||
|
||||
test(function () {
|
||||
assert_throws("SYNTAX_ERR", function () { wsocket = new WebSocket("?test") });
|
||||
}, "Url is ?test - should throw SYNTAX_ERR");
|
||||
test(function() {
|
||||
assert_throws("SYNTAX_ERR", function() {
|
||||
wsocket = new WebSocket("?test")
|
||||
});
|
||||
}, "Url is ?test - should throw SYNTAX_ERR");
|
||||
|
||||
test(function () {
|
||||
assert_throws("SYNTAX_ERR", function () { wsocket = new WebSocket("#test") });
|
||||
}, "Url is #test - should throw SYNTAX_ERR");
|
||||
test(function() {
|
||||
assert_throws("SYNTAX_ERR", function() {
|
||||
wsocket = new WebSocket("#test")
|
||||
});
|
||||
}, "Url is #test - should throw SYNTAX_ERR");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue