xmlhttprequest-timeout-worker-aborted.html (2116B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>XHR2 Timeout Property Tests in Worker</title> 6 <link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4] following-sibling::ol/li[4]/ol/li[5]" /> 7 <link rel="help" href="https://xhr.spec.whatwg.org/#the-timeout-attribute" data-tested-assertations="following-sibling::ol/li[2]" /> 8 <link rel="help" href="https://xhr.spec.whatwg.org/#abort-error" data-tested-assertations=".."/> 9 <link rel="help" href="https://xhr.spec.whatwg.org/#event-xhr-abort" data-tested-assertations="../.." /> 10 <link rel="help" href="https://xhr.spec.whatwg.org/#timeout-error" data-tested-assertations=".."/> 11 <link rel="help" href="https://xhr.spec.whatwg.org/#event-xhr-timeout" data-tested-assertations="../.." /> 12 <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol/li[9]"/> 13 <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/.. following-sibling::dl//code[contains(@title,'dom-XMLHttpRequest-timeout')]/../following-sibling::dd following::dt[1] following::dd[1]" /> 14 <meta name=timeout content=long> 15 <meta name=variant content="?only open()ed, not aborted"> 16 <meta name=variant content="?aborted immediately after send()"> 17 <meta name=variant content="?call abort() after TIME_NORMAL_LOAD"> 18 <script src="/resources/testharness.js"></script> 19 <script src="/resources/testharnessreport.js"></script> 20 <script src="resources/xmlhttprequest-timeout-runner.js"></script> 21 </head> 22 <body> 23 <h1>Description</h1> 24 <p>This test validates that the XHR2 timeout property behaves as expected in in a worker context.</p> 25 <div id="log"></div> 26 <script type="text/javascript"> 27 var worker = new Worker("resources/xmlhttprequest-timeout-aborted.js"); 28 worker.addEventListener("message", testResultCallbackHandler); 29 </script> 30 </body> 31 </html>