blob: 3a5d5b0f22cdfa3dc86393dfdc0a67ee4b1d50c0 [file] [log] [blame]
Test if WebSocket is closed on unload and not crashed if garbage collected
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS ws on master document is ready.
PASS insert a iframe, where open ws called 'socket1'
PASS 'socket1' is sent to the server. unload the iframe and force garbage collection. expect receiving 'socket1' on ws and no crash...
PASS closedSocket is "socket1"
PASS closeCode is "1001"
PASS successfullyParsed is true
TEST COMPLETE