xmlhttprequest-timeout-synconworker.js (549B)
1 if (this.document === undefined){ 2 importScripts("xmlhttprequest-timeout.js"); 3 }else{ 4 throw "This test expects to be run as a Worker"; 5 } 6 7 /* NOT TESTED: setting timeout before calling open( ... , false) in a worker context. The test code always calls open() first. */ 8 9 runTestRequests([ ["RequestTracker", false, "no time out scheduled, load fires normally", 0], 10 ["RequestTracker", false, "load fires normally", TIME_NORMAL_LOAD], 11 ["RequestTracker", false, "timeout hit before load", TIME_REGULAR_TIMEOUT] ]);