mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 58133dd71b16037669a0aa011b2afd448b52d434.
This commit is contained in:
parent
84c4a26e4d
commit
88ea7c4291
192 changed files with 50802 additions and 1334 deletions
|
@ -27,8 +27,7 @@ function test_withCredentials(worker) {
|
|||
}
|
||||
}, "setting on synchronous XHR")
|
||||
|
||||
async_test("setting withCredentials when not in UNSENT, OPENED state").step(function() {
|
||||
this.add_cleanup(done)
|
||||
async_test(function() {
|
||||
var client = new XMLHttpRequest()
|
||||
client.open("GET", "resources/delay.py?ms=1000")
|
||||
client.send()
|
||||
|
@ -39,5 +38,11 @@ function test_withCredentials(worker) {
|
|||
this.done()
|
||||
}
|
||||
})
|
||||
})
|
||||
}, "setting withCredentials when not in UNSENT, OPENED state (asynchronous)")
|
||||
|
||||
test(function() {
|
||||
var client = new XMLHttpRequest()
|
||||
client.open("GET", "resources/delay.py?ms=1000", false)
|
||||
assert_throws("InvalidStateError", function() { client.withCredentials = true })
|
||||
}, "setting withCredentials when in DONE state (synchronous)")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue