1 Test that WebSocket opened in iframe is closed when the iframe is unloaded even if the WebSocket is referred by the parent frame.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
5 PASS ws on master document is ready.
6 PASS insert a iframe, where open ws called 'socket1'
7 PASS document.childWebSocket is non-null.
8 PASS 'socket1' is sent to the server. unload the iframe. expect receiving 'socket1' on ws...
9 PASS closedSocket is "socket1"
10 PASS closeCode is "1001"
11 PASS document.childWebSocket.readyState is 3
12 PASS successfullyParsed is true