Index: LayoutTests/http/tests/websocket/long-invalid-header.html |
diff --git a/LayoutTests/http/tests/websocket/long-invalid-header.html b/LayoutTests/http/tests/websocket/long-invalid-header.html |
index 344dc93ce476a3a57a22c4cc2d2015813d4446c0..c946d290d1d9f12ed401f8b6a1d91e7eccbaee94 100644 |
--- a/LayoutTests/http/tests/websocket/long-invalid-header.html |
+++ b/LayoutTests/http/tests/websocket/long-invalid-header.html |
@@ -24,6 +24,10 @@ ws.onclose = function () { |
debug("WebSocket is closed"); |
finish(); |
}; |
+ws.onerror = function(errorEvent) |
+{ |
+ testPassed("onerror() was called"); |
+}; |
var timeoutID = setTimeout("finish()", 2000); |
</script> |