| <title>XMLHttpRequest: abort() during OPEN</title> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4] following-sibling::ol/li[5]" /> |
| <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following-sibling::ol/li[1]" /> |
| var client = new XMLHttpRequest() |
| client.open("GET", "...") |
| client.onreadystatechange = function() { |
| assert_equals(client.readyState, 0) |
| assert_throws("InvalidStateError", function() { client.send("test") }, "calling send() after abort()") |