OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <body> |
| 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 var t = async_test('An empty valued header in a WebSocket handshake response doe
sn\'t fail a WebSocket'); |
| 7 t.step(function() { |
| 8 var ws = new WebSocket('ws://127.0.0.1:8880/handshake-response-with-empty-va
lued-header'); |
| 9 ws.onopen = function() { |
| 10 t.done(); |
| 11 }; |
| 12 ws.onmessage = t.step_func(function(e) { |
| 13 assert_unreached('Unexpected message event' + e); |
| 14 }); |
| 15 ws.onerror = t.step_func(function() { |
| 16 assert_unreached('Unexpected error event'); |
| 17 }); |
| 18 ws.onclose = t.step_func(function(e) { |
| 19 assert_unreached('Unexpected close event' + e); |
| 20 }); |
| 21 }); |
| 22 </script> |
| 23 </body> |
OLD | NEW |