blob: 9bb53134edf54532946ff0e16009bb3836fa9007 [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 on the XMLHttpRequestUpload (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.upload.onprogress = function(e)
{
test.step(function()
{
assert_true(e instanceof ProgressEvent);
assert_equals(e.type, "progress");
assert_equals(e.target, xhr.upload);
test.done();
});
};
xhr.open("POST", "./resources/content.php", true);
xhr.send("Test Message");
});
</script>
</body>
</html>