Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /xhr/abort-during-unsent.any.html - WPT Dashboard Interop Dashboard
- /xhr/abort-during-unsent.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=XMLHttpRequest: abort() during UNSENT
var test = async_test()
test.step(function() {
var client = new XMLHttpRequest()
client.onreadystatechange = function() {
test.step(function() {
assert_unreached()
})
}
assert_equals(client.readyState, 0)
assert_equals(client.status, 0)
assert_equals(client.statusText, "")
client.abort()
assert_equals(client.readyState, 0)
assert_equals(client.status, 0)
assert_equals(client.statusText, "")
})
test.done()