| OLD | NEW |
| 1 <p>Test sending many messages, and sending a large message.</p> | 1 <p>Test sending many messages, and sending a large message.</p> |
| 2 <p>Should say PASS:</p> | 2 <p>Should say PASS:</p> |
| 3 <pre id=log>Running the test... | 3 <pre id=log>Running the test... |
| 4 </pre> | 4 </pre> |
| 5 <script> | 5 <script> |
| 6 var numSmallMessages = 1000; | 6 var numSmallMessages = 1000; |
| 7 | 7 |
| 8 if (window.testRunner) { | 8 if (window.testRunner) { |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ws.send(str); | 43 ws.send(str); |
| 44 ws.onmessage = function(msg) { | 44 ws.onmessage = function(msg) { |
| 45 log(msg.data.length == str.length ? "PASS" : "FAIL - wrong response leng
th"); | 45 log(msg.data.length == str.length ? "PASS" : "FAIL - wrong response leng
th"); |
| 46 ws.send("Goodbye"); | 46 ws.send("Goodbye"); |
| 47 ws.onmessage = null; | 47 ws.onmessage = null; |
| 48 if (window.testRunner) | 48 if (window.testRunner) |
| 49 setTimeout("testRunner.notifyDone()", 0); | 49 setTimeout("testRunner.notifyDone()", 0); |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 </script> | 52 </script> |
| OLD | NEW |