mirror of
https://github.com/servo/servo.git
synced 2025-06-27 18:43:40 +01:00
18 lines
506 B
JavaScript
18 lines
506 B
JavaScript
var test = async_test()
|
|
test.step(function() {
|
|
var client = new XMLHttpRequest()
|
|
client.open("GET", "...")
|
|
client.onreadystatechange = function() {
|
|
test.step(function() {
|
|
assert_unreached()
|
|
})
|
|
}
|
|
assert_equals(client.readyState, 1, "before abort()")
|
|
assert_equals(client.status, 0)
|
|
assert_equals(client.statusText, "")
|
|
client.abort()
|
|
assert_equals(client.readyState, 1, "after abort()")
|
|
assert_equals(client.status, 0)
|
|
assert_equals(client.statusText, "")
|
|
})
|
|
test.done()
|