servo/tests/wpt/web-platform-tests/xhr/send-send.any.js

7 lines
251 B
JavaScript

test(function() {
var client = new XMLHttpRequest()
client.open("GET", "resources/well-formed.xml")
client.send(null)
assert_throws("InvalidStateError", function() { client.send(null) })
client.abort()
}, "XMLHttpRequest: send() - send()");