| Index: LayoutTests/http/tests/websocket/tests/hybi/cookie-ws-to-ws.html
|
| diff --git a/LayoutTests/http/tests/websocket/tests/hybi/cookie-ws-to-ws.html b/LayoutTests/http/tests/websocket/tests/hybi/cookie-ws-to-ws.html
|
| deleted file mode 100644
|
| index 383747be7d50314b59da59ef292daa97cb3a9cfe..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/http/tests/websocket/tests/hybi/cookie-ws-to-ws.html
|
| +++ /dev/null
|
| @@ -1,65 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="/js-test-resources/js-test.js"></script>
|
| -</head>
|
| -<body>
|
| -<p>Test send cookies to a WebSocket handshake which is set by another WebSocket handshake.</p>
|
| -<p>On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".</p>
|
| -<div id="console"></div>
|
| -<script>
|
| -window.jsTestIsAsync = true;
|
| -
|
| -function checkCookie(expected, actual) {
|
| - expected = expected.split('; ').sort().join('; ');
|
| - actual = actual.split('; ').sort().join('; ');
|
| - if (expected === actual) {
|
| - debug('PASS cookie is "' + expected + '"');
|
| - } else {
|
| - debug('FAIL cookie should be ' + expected + '. Was ' + actual + '.');
|
| - }
|
| -}
|
| -
|
| -var cookie;
|
| -var url_set_cookie = 'ws://127.0.0.1:8880/set-cookie';
|
| -var url_echo_cookie = 'ws://127.0.0.1:8880/echo-cookie';
|
| -var ws_set_cookie = new WebSocket(url_set_cookie);
|
| -
|
| -ws_set_cookie.onopen = function () {
|
| - debug('A WebSocket connection to ' + url_set_cookie + ' is opened.');
|
| - ws_set_cookie.close();
|
| -};
|
| -ws_set_cookie.onclose = function (e) {
|
| - debug('A WebSocket connection to ' + url_set_cookie + ' is closed.');
|
| - var ws_echo_cookie = new WebSocket(url_echo_cookie);
|
| - ws_echo_cookie.onopen = function () {
|
| - debug('A WebSocket connection to ' + url_echo_cookie + ' is opened.');
|
| - };
|
| - ws_echo_cookie.onmessage = function (e) {
|
| - cookie = e.data;
|
| - ws_echo_cookie.close();
|
| - };
|
| - ws_echo_cookie.onerror = function () {
|
| - debug('FAIL: A WebSocket connection has an error.');
|
| - clear();
|
| - };
|
| - ws_echo_cookie.onclose = function (e) {
|
| - debug('A WebSocket connection to ' + url_echo_cookie + ' is closed.');
|
| - checkCookie('WK-WebSocket-test-domain-pass=1; WK-WebSocket-test-path-pass=1; WK-WebSocket-test=1', cookie);
|
| - clear();
|
| - };
|
| -};
|
| -ws_set_cookie.onerror = function () {
|
| - debug('FAIL: A WebSocket connection has an error.');
|
| - clear();
|
| -};
|
| -
|
| -function clear() {
|
| - var ws = new WebSocket(url_set_cookie + '?clear=1');
|
| - ws.onopen = function () {
|
| - ws.close();
|
| - };
|
| - ws.onclose = finishJSTest;
|
| -}
|
| -</script>
|
| -</body>
|
| -</html>
|
|
|