Bug 1190349 - Update web-platform-tests to revision 2bd8c7dcf2e216e58ece63491f31b5d087ec740e, a=testonly

This commit is contained in:
James Graham
2015-08-03 10:49:53 +01:00
parent 326aa2583d
commit a24f264c93
56 changed files with 1341 additions and 139 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)")
}