websocket1.worker.js (833B)
1 /* exported tests */ 2 3 importScripts("websocket_helpers.js"); 4 importScripts("websocket_tests.js"); 5 importScripts("websocket_worker_helpers.js"); 6 7 var tests = [ 8 test1, // client tries to connect to a http scheme location; 9 test2, // assure serialization of the connections; 10 test3, // client tries to connect to an non-existent ws server; 11 test4, // client tries to connect using a relative url; 12 test5, // client uses an invalid protocol value; 13 test6, // counter and encoding check; 14 test7, // onmessage event origin property check 15 test8, // client calls close() and the server sends the close frame (with no 16 // code or reason) in acknowledgement; 17 test9, // client closes the connection before the ws connection is established; 18 test10, // client sends a message before the ws connection is established; 19 ]; 20 21 doTest();