Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="help" href="" data-tested-assertations="../.." />
<link rel="help" href="" data-tested-assertations="../.." />
<link rel="help" href="" data-tested-assertations="following::dt[11] following::a[contains(@href,'#switch-done')]/.." />
<link rel="help" href="" data-tested-assertations="following::ol/li[1] following::ol/li[7]" />
<link rel="help" href="" data-tested-assertations="/following::ol/li[3]" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>XMLHttpRequest: The send() method: Fire an event named loadend (no response entity body and the synchronous flag is set)</title>
<div id="log"></div>
<script type="text/javascript">
var xhr = new XMLHttpRequest();
var pass = false;
xhr.onloadend = function(e)
assert_true(e instanceof ProgressEvent);
assert_equals(e.type, "loadend");
pass = true;
};"POST", "./resources/", false);
assert_equals(xhr.response, "");