OLD | NEW |
1 WebSocket should fail if invalid subprotocols are specified | 1 WebSocket should fail if invalid subprotocols are specified |
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(url, 'a b') threw exception SyntaxError: Failed to execute 'c
onnect' on 'WebSocket': The subprotocol 'a b' is invalid.. | 5 PASS new WebSocket(url, 'a b') threw exception SyntaxError: The subprotocol 'a b
' is invalid.. |
6 PASS new WebSocket(url, 'a,b') threw exception SyntaxError: Failed to execute 'c
onnect' on 'WebSocket': The subprotocol 'a,b' is invalid.. | 6 PASS new WebSocket(url, 'a,b') threw exception SyntaxError: The subprotocol 'a,b
' is invalid.. |
7 PASS new WebSocket(url, 'a\0b') threw exception SyntaxError: Failed to execute '
connect' on 'WebSocket': The subprotocol 'a\u0000b' is invalid.. | 7 PASS new WebSocket(url, 'a\0b') threw exception SyntaxError: The subprotocol 'a\
u0000b' is invalid.. |
8 PASS new WebSocket(url, '\u3042') threw exception SyntaxError: Failed to execute
'connect' on 'WebSocket': The subprotocol '\u3042' is invalid.. | 8 PASS new WebSocket(url, '\u3042') threw exception SyntaxError: The subprotocol '
\u3042' is invalid.. |
9 PASS new WebSocket(url, ['a', 'b', 'c d']) threw exception SyntaxError: Failed t
o execute 'connect' on 'WebSocket': The subprotocol 'c d' is invalid.. | 9 PASS new WebSocket(url, ['a', 'b', 'c d']) threw exception SyntaxError: The subp
rotocol 'c d' is invalid.. |
10 PASS new WebSocket(url, ['a', 'b', 'c', 'a']) threw exception SyntaxError: Faile
d to execute 'connect' on 'WebSocket': The subprotocol 'a' is duplicated.. | 10 PASS new WebSocket(url, ['a', 'b', 'c', 'a']) threw exception SyntaxError: The s
ubprotocol 'a' is duplicated.. |
11 PASS successfullyParsed is true | 11 PASS successfullyParsed is true |
12 | 12 |
13 TEST COMPLETE | 13 TEST COMPLETE |
14 | 14 |
OLD | NEW |