Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / websocket / FIXME-handshake-fail-by-null-subprotocol-selection-whitelist.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9 <script>
10 description("Test for verifying that the whitelist prevents handshake fail when the client requests a subprotocol but the server doesn't include a Sec-WebSocket-Protocol header in the response.");
11
12 window.jsTestIsAsync = true;
13
14 var url = "ws://localhost:8880/handshake-fail-by-null-subprotocol-selection";
15 var ws = new WebSocket(url, 'ica.citrix.com');
16
17 ws.onopen = function()
18 {
19     testPassed("Connection established.");
20     ws.close();
21 };
22
23 ws.onclose = function(event)
24 {
25     finishJSTest();
26 };
27
28 </script>
29 </body>
30 </html>