| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8" /> |
| <title>XHR2 Timeout Property Tests</title> |
| <link rel="help" href="http://www.w3.org/TR/XMLHttpRequest/#timeout-error" /> |
| <link rel="stylesheet" href="/w3c/resources/testharness.css" /> |
| <script src="/w3c/resources/testharness.js"></script> |
| <script src="/w3c/resources/testharnessreport.js"></script> |
| <script src="xmlhttprequest-timeout.js"></script> |
| <script src="xmlhttprequest-timeout-runner.js"></script> |
| <script> |
| function testXhr() { |
| window.addEventListener("message", testResultCallbackHandler); |
| var runTests = { "type": "start", "group": groupFromLocation() }; |
| window.postMessage(runTests, "*"); |
| }; |
| </script> |
| </head> |
| <body onload="testXhr()"> |
| <h1>Description</h1> |
| <p>This test validates that the XHR2 timeout property behaves as expected in async cases in document (i.e. non-worker) context.</p> |
| <div id="log"></div> |
| </body> |
| </html> |
| |