Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / virtual / stable / http / tests / websocket / invalid-subprotocols-expected.txt
1 WebSocket should fail if invalid subprotocols are specified
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5 PASS new WebSocket(url, 'a b') threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol 'a b' is invalid..
6 PASS new WebSocket(url, 'a,b') threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol 'a,b' is invalid..
7 PASS new WebSocket(url, 'a\0b') threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol 'a\u0000b' is invalid..
8 PASS new WebSocket(url, '\u3042') threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol '\u3042' is invalid..
9 PASS new WebSocket(url, ['a', 'b', 'c d']) threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol 'c d' is invalid..
10 PASS new WebSocket(url, ['a', 'b', 'c', 'a']) threw exception SyntaxError: Failed to construct 'WebSocket': The subprotocol 'a' is duplicated..
11 PASS successfullyParsed is true
12
13 TEST COMPLETE
14