Test case for bug 40952: Onloadend event is not supported in XMLHttpRequest

Verify that a loadend ProgressEvent is dispatched after the error ProgressEvent when an async request fails.

Verify also that a progress ProgressEvent is sent between readystatechange and error ProgressEvent (bug 126575).

PASS should appear below: