| <title>XMLHttpRequest: abort() during DONE</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]" /> |
| var client = new XMLHttpRequest(), |
| expected = [1, 4] // open() -> 1, send() -> 4 |
| client.onreadystatechange = function() { |
| result.push(client.readyState) |
| client.open("GET", "resources/well-formed.xml", false) |
| assert_equals(client.readyState, 4) |
| assert_equals(client.readyState, 0) |
| assert_array_equals(result, expected) |