blob: 1c50ed394dce5b1953762ce84011a5984fbc99b6 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: abort() should not reset event listeners</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[6] following-sibling::ol/li[7]" />
</head>
<body>
<div id="log"></div>
<script>
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()
</script>
</body>
</html>