| OLD | NEW |
| 1 var ws = new WebSocket("ws://127.0.0.1:8880/workers/resources/simple"); | 1 var ws = new WebSocket("ws://127.0.0.1:8880/workers/resources/simple"); |
| 2 | 2 |
| 3 if (ws.protocol === "") | 3 if (ws.protocol === "") |
| 4 postMessage("PASS: ws.protocol is equal to \"\""); | 4 postMessage("PASS: ws.protocol is equal to \"\""); |
| 5 else | 5 else |
| 6 postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\
""); | 6 postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol + "\
""); |
| 7 | 7 |
| 8 ws.onopen = function() | 8 ws.onopen = function() |
| 9 { | 9 { |
| 10 postMessage("INFO: Connected"); | 10 postMessage("INFO: Connected"); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 { | 35 { |
| 36 postMessage("INFO: Exited onclose handler"); | 36 postMessage("INFO: Exited onclose handler"); |
| 37 | 37 |
| 38 if (ws.protocol === "") | 38 if (ws.protocol === "") |
| 39 postMessage("PASS: ws.protocol is equal to \"\""); | 39 postMessage("PASS: ws.protocol is equal to \"\""); |
| 40 else | 40 else |
| 41 postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol
+ "\""); | 41 postMessage("FAIL: ws.protocol should be \"\" but was \"" + ws.protocol
+ "\""); |
| 42 | 42 |
| 43 postMessage("DONE"); | 43 postMessage("DONE"); |
| 44 } | 44 } |
| OLD | NEW |