| Index: LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr.html
|
| diff --git a/LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr.html b/LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr.html
|
| deleted file mode 100644
|
| index 869f4d4723149fd1075062a031dfebe40286f9ec..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/http/tests/websocket/tests/hybi/handshake-fail-by-no-cr.html
|
| +++ /dev/null
|
| @@ -1,55 +0,0 @@
|
| -<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
| -<html>
|
| -<head>
|
| -<script src="/js-test-resources/js-test.js"></script>
|
| -</head>
|
| -<body>
|
| -<div id="description"></div>
|
| -<div id="console"></div>
|
| -<script type="text/javascript">
|
| -description('Handshake should fail when the first line does not end with CRLF.');
|
| -
|
| -window.jsTestIsAsync = true;
|
| -
|
| -var connected = false;
|
| -var origin;
|
| -
|
| -function endTest() {
|
| - shouldBeFalse('connected');
|
| - shouldBeUndefined('origin');
|
| - clearTimeout(timeoutID);
|
| - finishJSTest();
|
| -}
|
| -
|
| -var url = 'ws://localhost:8880/handshake-fail-by-no-cr';
|
| -var ws = new WebSocket(url);
|
| -
|
| -ws.onopen = function()
|
| -{
|
| - debug('Connected');
|
| - connected = true;
|
| -}
|
| -
|
| -ws.onmessage = function(messageEvent)
|
| -{
|
| - origin = messageEvent.data;
|
| - debug('origin = ' + origin);
|
| - ws.close();
|
| -}
|
| -
|
| -ws.onclose = function()
|
| -{
|
| - endTest();
|
| -}
|
| -
|
| -function timeoutCallback()
|
| -{
|
| - debug('Timed out (state = ' + ws.readyState + ')');
|
| - endTest();
|
| -}
|
| -
|
| -var timeoutID = setTimeout(timeoutCallback, 3000);
|
| -
|
| -</script>
|
| -</body>
|
| -</html>
|
|
|