blob: 92e77e0ad0b419b571267ad00b2da03ec4dcfd3f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-send()-method" />
<script src="/resources/testharness.js"></script>
<title>XMLHttpRequest L2: The send() method: Fire a progress event named progress (synchronous flag is unset)</title>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
var test = async_test();
test.step(function()
{
var xhr = new XMLHttpRequest();
xhr.onprogress = function(e)
{
test.step(function()
{
assert_true(e instanceof ProgressEvent);
assert_equals(e.type, "progress");
test.done();
});
};
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
</body>
</html>