Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /xhr/abort-event-listeners.any.html - WPT Dashboard Interop Dashboard
- /xhr/abort-event-listeners.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=XMLHttpRequest: abort() should not reset event listeners
var test = async_test()
test.step(function() {
var client = new XMLHttpRequest(),
test = function() {}
client.onreadystatechange = test
client.open("GET", "resources/well-formed.xml")
client.send(null)
client.abort()
assert_equals(client.onreadystatechange, test)
})
test.done()