Test if WebSocket fires close event when WebSocket is opened and close() is called on it before open event is dispatched.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
closed on test 1
closed on test 2
PASS successfullyParsed is true
TEST COMPLETE