Index: LayoutTests/http/tests/websocket/handshake-error.html |
diff --git a/LayoutTests/http/tests/websocket/handshake-error.html b/LayoutTests/http/tests/websocket/handshake-error.html |
index 2ce497a8dd3ff1b1d7289f834c203ada00fcd661..05706d26c75345d17c0dac60629ac2d2fa2fa2d7 100644 |
--- a/LayoutTests/http/tests/websocket/handshake-error.html |
+++ b/LayoutTests/http/tests/websocket/handshake-error.html |
@@ -1,4 +1,4 @@ |
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
+<!DOCTYPE HTML> |
<html> |
<head> |
<script src="/js-test-resources/js-test.js"></script> |
@@ -36,6 +36,11 @@ ws.onclose = function() |
endTest(); |
}; |
+ws.onerror = function(errorEvent) |
+{ |
+ testPassed("onerror() was called"); |
+}; |
+ |
function timeOutCallback() |
{ |
testFailed("Timed out in state: " + ws.readyState); |