OLD | NEW |
1 Test WebSocket URL parsing. | 1 Test WebSocket URL parsing. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 PASS new WebSocket() threw exception TypeError: Failed to construct 'WebSocket':
1 argument required, but only 0 present.. | 5 PASS new WebSocket() threw exception TypeError: Failed to construct 'WebSocket':
1 argument required, but only 0 present.. |
6 PASS new WebSocket(null) threw exception SyntaxError: Failed to execute 'connect
' on 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. 'http' is not a
llowed.. | 6 PASS new WebSocket(null) threw exception SyntaxError: The URL's scheme must be e
ither 'ws' or 'wss'. 'http' is not allowed.. |
7 PASS new WebSocket("ws://javascript:a") threw exception SyntaxError: Failed to e
xecute 'connect' on 'WebSocket': The URL 'ws://javascript:a/' is invalid.. | 7 PASS new WebSocket("ws://javascript:a") threw exception SyntaxError: The URL 'ws
://javascript:a/' is invalid.. |
8 PASS new WebSocket("/applet") threw exception SyntaxError: Failed to execute 'co
nnect' on 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. 'http' is
not allowed.. | 8 PASS new WebSocket("/applet") threw exception SyntaxError: The URL's scheme must
be either 'ws' or 'wss'. 'http' is not allowed.. |
9 PASS new WebSocket("javascript:a") threw exception SyntaxError: Failed to execut
e 'connect' on 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. 'java
script' is not allowed.. | 9 PASS new WebSocket("javascript:a") threw exception SyntaxError: The URL's scheme
must be either 'ws' or 'wss'. 'javascript' is not allowed.. |
10 PASS new WebSocket("ws://127.0.0.1:25/") threw exception SecurityError: Failed t
o execute 'connect' on 'WebSocket': The port 25 is not allowed.. | 10 PASS new WebSocket("ws://127.0.0.1:25/") threw exception SecurityError: The port
25 is not allowed.. |
11 PASS (new WebSocket("ws://127.0.0.1:8880/a/../simple")).URL is "ws://127.0.0.1:8
880/simple" | 11 PASS (new WebSocket("ws://127.0.0.1:8880/a/../simple")).URL is "ws://127.0.0.1:8
880/simple" |
12 PASS (new WebSocket("ws://127.0.0.1:8880/simple?")).URL is "ws://127.0.0.1:8880/
simple?" | 12 PASS (new WebSocket("ws://127.0.0.1:8880/simple?")).URL is "ws://127.0.0.1:8880/
simple?" |
13 PASS (new WebSocket("ws://127.0.0.1:8880/simple?k=v")).URL is "ws://127.0.0.1:88
80/simple?k=v" | 13 PASS (new WebSocket("ws://127.0.0.1:8880/simple?k=v")).URL is "ws://127.0.0.1:88
80/simple?k=v" |
14 PASS new WebSocket("ws://127.0.0.1/path#") threw exception SyntaxError: Failed t
o execute 'connect' on 'WebSocket': The URL contains a fragment identifier ('').
Fragment identifiers are not allowed in WebSocket URLs.. | 14 PASS new WebSocket("ws://127.0.0.1/path#") threw exception SyntaxError: The URL
contains a fragment identifier (''). Fragment identifiers are not allowed in Web
Socket URLs.. |
15 PASS new WebSocket("ws://127.0.0.1/path#fragment") threw exception SyntaxError:
Failed to execute 'connect' on 'WebSocket': The URL contains a fragment identifi
er ('fragment'). Fragment identifiers are not allowed in WebSocket URLs.. | 15 PASS new WebSocket("ws://127.0.0.1/path#fragment") threw exception SyntaxError:
The URL contains a fragment identifier ('fragment'). Fragment identifiers are no
t allowed in WebSocket URLs.. |
16 PASS successfullyParsed is true | 16 PASS successfullyParsed is true |
17 | 17 |
18 TEST COMPLETE | 18 TEST COMPLETE |
19 | 19 |
OLD | NEW |