4 <script src="/js-test-resources/js-test.js"></script>
7 <div id="description"></div>
8 <div id="console"></div>
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.");
12 window.jsTestIsAsync = true;
14 var url = "ws://localhost:8880/handshake-fail-by-null-subprotocol-selection";
15 var ws = new WebSocket(url, 'ica.citrix.com');
17 ws.onopen = function()
19 testPassed("Connection established.");
23 ws.onclose = function(event)