| <link rel="help" href="https://xhr.spec.whatwg.org/#the-abort()-method" data-tested-assertations="following-sibling::ol/li[4]/ol/li[7]/ol/li[4]" /> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <title>XMLHttpRequest: The abort() method: Fire a progress event named loadend on the XMLHttpRequestUpload object</title> |
| <script type="text/javascript"> |
| var xhr = new XMLHttpRequest(); |
| xhr.onloadstart = function() |
| xhr.upload.onloadend = function(e) |
| assert_true(e instanceof ProgressEvent); |
| assert_equals(e.type, "loadend"); |
| assert_equals(e.target, xhr.upload); |
| xhr.open("POST", "./resources/content.py", true); |
| xhr.send("Test Message"); |