OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="/js-test-resources/js-test.js"></script> | 3 <script src="/js-test-resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <p>Test send cookies to a WebSocket handshake which is set by another WebSocket
handshake.</p> | 6 <p>Test send cookies to a WebSocket handshake which is set by another WebSocket
handshake.</p> |
7 <p>On success, you will see a series of "PASS" messages, followed by "TEST COMPL
ETE".</p> | 7 <p>On success, you will see a series of "PASS" messages, followed by "TEST COMPL
ETE".</p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 window.jsTestIsAsync = true; | 10 window.jsTestIsAsync = true; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 function clear() { | 56 function clear() { |
57 var ws = new WebSocket(url_set_cookie + '?clear=1'); | 57 var ws = new WebSocket(url_set_cookie + '?clear=1'); |
58 ws.onopen = function () { | 58 ws.onopen = function () { |
59 ws.close(); | 59 ws.close(); |
60 }; | 60 }; |
61 ws.onclose = finishJSTest; | 61 ws.onclose = finishJSTest; |
62 } | 62 } |
63 </script> | 63 </script> |
64 </body> | 64 </body> |
65 </html> | 65 </html> |
OLD | NEW |