Index: LayoutTests/http/tests/websocket/handshake-fail-by-mismatch-protocol-header.html |
diff --git a/LayoutTests/http/tests/websocket/handshake-fail-by-mismatch-protocol-header.html b/LayoutTests/http/tests/websocket/handshake-fail-by-mismatch-protocol-header.html |
index b74f178c6c37e6165c80b744bd665ddc5c2e3e7e..37b8009442b7bf6dee90e631f561d0d67144775f 100644 |
--- a/LayoutTests/http/tests/websocket/handshake-fail-by-mismatch-protocol-header.html |
+++ b/LayoutTests/http/tests/websocket/handshake-fail-by-mismatch-protocol-header.html |
@@ -39,6 +39,11 @@ function doTest(index) |
} |
doTest(index + 1); |
}; |
+ |
+ ws.onerror = function(errorEvent) |
+ { |
+ testPassed("onerror() was called"); |
+ }; |
} |
doTest(0); |