summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/send-send.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/XMLHttpRequest/send-send.js')
-rw-r--r--testing/web-platform/tests/XMLHttpRequest/send-send.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/web-platform/tests/XMLHttpRequest/send-send.js b/testing/web-platform/tests/XMLHttpRequest/send-send.js
new file mode 100644
index 000000000..2e7fe865f
--- /dev/null
+++ b/testing/web-platform/tests/XMLHttpRequest/send-send.js
@@ -0,0 +1,7 @@
+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()
+})