blob: f59b36efea5211c72b7957c09ff719e346c4e970 [file] [log] [blame]
Test WebSocket bad sub-protocol names by control characters.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS new WebSocket("ws://127.0.0.1:8880/simple", "\0") threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol '\u0000' is invalid..
PASS new WebSocket("ws://127.0.0.1:8880/simple", " ") threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol '\u0009' is invalid..
PASS new WebSocket("ws://127.0.0.1:8880/simple", "
") threw exception SyntaxError: Invalid or unexpected token.
PASS new WebSocket("ws://127.0.0.1:8880/simple", "
") threw exception SyntaxError: Invalid or unexpected token.
PASS new WebSocket("ws://127.0.0.1:8880/simple", "") threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol '\u001B' is invalid..
PASS successfullyParsed is true
TEST COMPLETE