d06a2f73c0f531b8ada86ab53fc937f5822efeaa
[test/tct/web/api.git] /
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="http://www.w3.org/TR/XMLHttpRequest/#the-timeout-attribute" data-tested-assertations="following::ol[1]/li[2]" />
7     <link rel="help" href="http://www.w3.org/TR/XMLHttpRequest/#handler-xhr-ontimeout" data-tested-assertations="../.."/>
8     <link rel="help" href="http://www.w3.org/TR/XMLHttpRequest/#timeout-error" data-tested-assertations=".."/>
9     <link rel="help" href="http://www.w3.org/TR/XMLHttpRequest/#request-error" data-tested-assertations="following::ol[1]/li[9]"/>
10     <link rel="help" href="http://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]" />
11     <link rel="stylesheet" href="/resources/testharness.css" />
12     <script src="/resources/testharness.js"></script>
13     <script src="/resources/testharnessreport.js"></script>
14     <script src="resources/xmlhttprequest-timeout-runner.js"></script>
15 </head>
16 <body>
17     <h1>Description</h1>
18     <p>This test validates that the XHR2 timeout property behaves as expected in in a worker context.</p>
19     <div id="log"></div>
20     <script type="text/javascript">
21         var worker = new Worker("resources/xmlhttprequest-timeout-overridesexpires.js");
22         worker.addEventListener("message", testResultCallbackHandler);
23     </script>
24 </body>
25 </html>