Update web-platform-tests to revision 58133dd71b16037669a0aa011b2afd448b52d434.

This commit is contained in:
Ms2ger 2015-08-11 17:14:59 +02:00
parent 84c4a26e4d
commit 88ea7c4291
192 changed files with 50802 additions and 1334 deletions

View file

@ -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)")
}