| OLD | NEW |
| 1 Make sure WebSocket fires CloseEvent when closed. | 1 Make sure WebSocket fires CloseEvent when closed. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 WebSocket is open | 5 WebSocket is open |
| 6 Received: 'Hello from Simple WSH.' | 6 Received: 'Hello from Simple WSH.' |
| 7 Closed | 7 Closed |
| 8 PASS closeEventType is "close" | 8 PASS closeEventType is "close" |
| 9 PASS 'wasClean' in closeEvent is true | 9 PASS 'wasClean' in closeEvent is true |
| 10 PASS closeEvent.wasClean is true | 10 PASS closeEvent.wasClean is true |
| 11 PASS Object.getPrototypeOf(closeEvent) === CloseEvent.prototype is true | 11 PASS Object.getPrototypeOf(closeEvent) === CloseEvent.prototype is true |
| 12 PASS Object.getPrototypeOf(closeEvent) !== Event.prototype is true | 12 PASS Object.getPrototypeOf(closeEvent) !== Event.prototype is true |
| 13 PASS successfullyParsed is true | 13 PASS successfullyParsed is true |
| 14 | 14 |
| 15 TEST COMPLETE | 15 TEST COMPLETE |
| 16 | 16 |
| OLD | NEW |