| Index: LayoutTests/http/tests/websocket/handshake-fail-by-no-upgrade-header.html
|
| diff --git a/LayoutTests/http/tests/websocket/handshake-fail-by-no-upgrade-header.html b/LayoutTests/http/tests/websocket/handshake-fail-by-no-upgrade-header.html
|
| index ccdbc2a2a1cd3fcaa6b4b510e15a146d238a8cfe..282391dad08af75f88aecb34d9ad95dc235986cb 100644
|
| --- a/LayoutTests/http/tests/websocket/handshake-fail-by-no-upgrade-header.html
|
| +++ b/LayoutTests/http/tests/websocket/handshake-fail-by-no-upgrade-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);
|
|
|