Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / virtual / stable / http / tests / websocket / bad-sub-protocol-control-chars-expected.txt
1 Test WebSocket bad sub-protocol names by control characters.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5 PASS new WebSocket("ws://127.0.0.1:8880/simple", "\0") threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol '\u0000' is invalid..
6 PASS new WebSocket("ws://127.0.0.1:8880/simple", "      ") threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol '\u0009' is invalid..
7 PASS new WebSocket("ws://127.0.0.1:8880/simple", "
8 ") threw exception SyntaxError: Unexpected token ILLEGAL.
9 PASS new WebSocket("ws://127.0.0.1:8880/simple", "
10 ") threw exception SyntaxError: Unexpected token ILLEGAL.
11 PASS new WebSocket("ws://127.0.0.1:8880/simple", "\e") threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol '\u001B' is invalid..
12 PASS successfullyParsed is true
13
14 TEST COMPLETE
15