websocket4.worker.js (849B)
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 test31, // ctor using valid 2 element sub-protocol array with 1 element server 9 // will reject and one server will accept 10 test32, // ctor using invalid sub-protocol array that contains duplicate items 11 test33, // test for sending/receiving custom close code (but no close reason) 12 test34, // test for receiving custom close code and reason 13 test35, // test for sending custom close code and reason 14 test36, // negative test for sending out of range close code 15 test37, // negative test for too long of a close reason 16 test38, // ensure extensions attribute is defined 17 test39, // a basic wss:// connectivity test 18 test40, // negative test for wss:// with no cert 19 ]; 20 21 doTest();