| Index: LayoutTests/http/tests/websocket/handshake-fail-by-no-connection-header.html
|
| diff --git a/LayoutTests/http/tests/websocket/handshake-fail-by-no-connection-header.html b/LayoutTests/http/tests/websocket/handshake-fail-by-no-connection-header.html
|
| index b72a5114b5797f230a880d28ae458a709626fcf0..d400ce3f8aec2282c34e5bf72cdb972c8c219112 100644
|
| --- a/LayoutTests/http/tests/websocket/handshake-fail-by-no-connection-header.html
|
| +++ b/LayoutTests/http/tests/websocket/handshake-fail-by-no-connection-header.html
|
| @@ -22,7 +22,7 @@ var ws = new WebSocket(url);
|
|
|
| ws.onopen = function()
|
| {
|
| - debug("FAIL: Connected");
|
| + testFailed("Unexpectedly Connected.");
|
| };
|
|
|
| ws.onmessage = function(messageEvent)
|
| @@ -36,6 +36,11 @@ ws.onclose = function()
|
| endTest();
|
| };
|
|
|
| +ws.onerror = function(errorEvent)
|
| +{
|
| + testPassed("onerror() was called");
|
| +};
|
| +
|
| function timeOutCallback()
|
| {
|
| debug("Timed out in state: " + ws.readyState);
|
|
|