mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update web-platform-tests to revision ea14651f262003177d0ba5819bd2806a1327b12a
This commit is contained in:
parent
847115ba04
commit
816185f094
272 changed files with 5766 additions and 2855 deletions
18
tests/wpt/web-platform-tests/xhr/abort-during-open.any.js
Normal file
18
tests/wpt/web-platform-tests/xhr/abort-during-open.any.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
var test = async_test("XMLHttpRequest: abort() during OPEN");
|
||||
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()
|
Loading…
Add table
Add a link
Reference in a new issue