1 CONSOLE MESSAGE: Wrong protocol for WebSocket '\u0000'
2 CONSOLE MESSAGE: Wrong protocol for WebSocket '\u0009'
3 CONSOLE MESSAGE: Wrong protocol for WebSocket '\u001B'
4 Test WebSocket bad sub-protocol names by control characters.
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
8 PASS new WebSocket("ws://127.0.0.1:8880/simple", "\0") threw exception Error: SYNTAX_ERR: DOM Exception 12.
9 PASS new WebSocket("ws://127.0.0.1:8880/simple", " ") threw exception Error: SYNTAX_ERR: DOM Exception 12.
10 PASS new WebSocket("ws://127.0.0.1:8880/simple", "
11 ") threw exception SyntaxError: Unexpected token ILLEGAL.
12 PASS new WebSocket("ws://127.0.0.1:8880/simple", "
13 ") threw exception SyntaxError: Unexpected token ILLEGAL.
14 PASS new WebSocket("ws://127.0.0.1:8880/simple", "
\e") threw exception Error: SYNTAX_ERR: DOM Exception 12.
15 PASS successfullyParsed is true