Test that WebSocket fires error event if no WebSocket Server can be connected, and connection is closed from onerror event On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". Test start (Port 8889) PASS onerror was called PASS onclose was called PASS successfullyParsed is true TEST COMPLETE