mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
22 lines
692 B
HTML
22 lines
692 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>XMLHttpRequest: send() - send()</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-send()-method" data-tested-assertations="following::ol/li[2]" />
|
|
</head>
|
|
<body>
|
|
<div id="log"></div>
|
|
<script>
|
|
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()
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|