| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8" /> | 4 <meta charset="utf-8" /> |
| 5 <title>XHR2 Timeout Property Tests in Worker</title> | 5 <title>XHR2 Timeout Property Tests in Worker</title> |
| 6 <link rel="help" href="http://www.w3.org/TR/XMLHttpRequest/#timeout-error" /
> | 6 <link rel="help" href="http://www.w3.org/TR/XMLHttpRequest/#timeout-error" /
> |
| 7 <link rel="stylesheet" href="testharness.css" /> | 7 <link rel="stylesheet" href="/w3c/resources/testharness.css" /> |
| 8 <script src="/w3c/resources/testharness.js"></script> | 8 <script src="/w3c/resources/testharness.js"></script> |
| 9 <script src="/w3c/resources/testharnessreport.js"></script> | 9 <script src="/w3c/resources/testharnessreport.js"></script> |
| 10 <script src="xmlhttprequest-timeout-runner.js"></script> | 10 <script src="xmlhttprequest-timeout-runner.js"></script> |
| 11 <script type="text/javascript"> | 11 <script type="text/javascript"> |
| 12 function testXhr() { | 12 function testXhr() { |
| 13 var worker = new Worker("xmlhttprequest-timeout.js"); | 13 var worker = new Worker("xmlhttprequest-timeout.js"); |
| 14 worker.addEventListener("message", testResultCallbackHandler); | 14 worker.addEventListener("message", testResultCallbackHandler); |
| 15 | 15 |
| 16 var runTests = { "type": "start", "group": groupFromLocation() }; | 16 var runTests = { "type": "start", "group": groupFromLocation() }; |
| 17 worker.postMessage(runTests); | 17 worker.postMessage(runTests); |
| 18 }; | 18 }; |
| 19 </script> | 19 </script> |
| 20 </head> | 20 </head> |
| 21 <body onload="testXhr()"> | 21 <body onload="testXhr()"> |
| 22 <h1>Description</h1> | 22 <h1>Description</h1> |
| 23 <p>This test validates that the XHR2 timeout property behaves as expected in
in a worker context.</p> | 23 <p>This test validates that the XHR2 timeout property behaves as expected in
in a worker context.</p> |
| 24 <div id="log"></div> | 24 <div id="log"></div> |
| 25 </body> | 25 </body> |
| 26 </html> | 26 </html> |
| 27 | 27 |
| OLD | NEW |