| OLD | NEW |
| 1 <p>Test sending and receiving small messages of different lengths.</p> | 1 <p>Test sending and receiving small messages of different lengths.</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 maxLength = 1025; | 6 var maxLength = 1025; |
| 7 | 7 |
| 8 if (window.testRunner) { | 8 if (window.testRunner) { |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 ws.send("Goodbye"); | 36 ws.send("Goodbye"); |
| 37 ws.onmessage = null; | 37 ws.onmessage = null; |
| 38 if (window.testRunner) | 38 if (window.testRunner) |
| 39 setTimeout("testRunner.notifyDone()", 0); | 39 setTimeout("testRunner.notifyDone()", 0); |
| 40 } else { | 40 } else { |
| 41 lastString += "*"; | 41 lastString += "*"; |
| 42 ws.send(lastString); | 42 ws.send(lastString); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 </script> | 45 </script> |
| OLD | NEW |