Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / platform / win / http / tests / websocket / tests / hixie76 / bad-sub-protocol-control-chars-expected.txt
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.
5
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7
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
16
17 TEST COMPLETE
18