Index: LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-null-subprotocol-selection.html |
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-wrong-accept-header.html b/LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-null-subprotocol-selection.html |
similarity index 68% |
copy from LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-wrong-accept-header.html |
copy to LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-null-subprotocol-selection.html |
index 048ad1e898330b4084583fdd045599ae33424bdf..eb6e59ecd4b808ee6dca98313fb90227300f2b80 100644 |
--- a/LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-wrong-accept-header.html |
+++ b/LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-null-subprotocol-selection.html |
@@ -7,12 +7,12 @@ |
<div id="description"></div> |
<div id="console"></div> |
<script> |
-description("Test whether WebSocket handshake fails if the server sends incorrect Sec-WebSocket-Accept header."); |
+description("Test for verifying that the WebSocket handshake fails when the client requests a subprotocol but the server doesn't include a Sec-WebSocket-Protocol header in the response."); |
window.jsTestIsAsync = true; |
-var url = "ws://localhost:8880/websocket/tests/hybi/handshake-fail-by-wrong-accept-header"; |
-var ws = new WebSocket(url); |
+var url = "ws://localhost:8880/websocket/tests/hybi/handshake-fail-by-null-subprotocol-selection"; |
+var ws = new WebSocket(url, 'test'); |
var closeEvent; |
ws.onopen = function() |