OLD | NEW |
1 <p>Test that WebSocket is not subject to HTTP connection limit. Should say PASS:
</p> | 1 <p>Test that WebSocket is not subject to HTTP connection limit. Should say PASS:
</p> |
2 <p id=result>Running...</p> | 2 <p id=result>Running...</p> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
9 var socketCount = 50; | 9 var socketCount = 50; |
10 var result = document.getElementById("result"); | 10 var result = document.getElementById("result"); |
(...skipping 14 matching lines...) Expand all Loading... |
25 sockets[j].onclose = null; | 25 sockets[j].onclose = null; |
26 sockets[j].close(); | 26 sockets[j].close(); |
27 } | 27 } |
28 if (window.testRunner) | 28 if (window.testRunner) |
29 testRunner.notifyDone(); | 29 testRunner.notifyDone(); |
30 } | 30 } |
31 } | 31 } |
32 ws.onclose = function() { alert("FAIL: unexpected close event") } | 32 ws.onclose = function() { alert("FAIL: unexpected close event") } |
33 } | 33 } |
34 </script> | 34 </script> |
OLD | NEW |