summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/xhr/send-send.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wpt/tests/xhr/send-send.any.js')
-rw-r--r--test/wpt/tests/xhr/send-send.any.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/wpt/tests/xhr/send-send.any.js b/test/wpt/tests/xhr/send-send.any.js
new file mode 100644
index 0000000..64b1554
--- /dev/null
+++ b/test/wpt/tests/xhr/send-send.any.js
@@ -0,0 +1,7 @@
+test(function() {
+ var client = new XMLHttpRequest()
+ client.open("GET", "resources/well-formed.xml")
+ client.send(null)
+ assert_throws_dom("InvalidStateError", function() { client.send(null) })
+ client.abort()
+}, "XMLHttpRequest: send() - send()");