[XMLHttpRequest-tests] evaluate assertions immediately after xhr.abort() (#968)

Anne has made a good point that it's more appropriate to perform assertions
here, rather than in one of the other event listeners, because
XMLHttpRequest#abort() should be synchronous, and the abort and loadend events
are dispatched synchronously.

So, this simplifies the test and avoids relying on setTimeout(), which is
nice, and potentially avoids missing assertions in non-compliant browsers.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/968

Received on Wednesday, 7 May 2014 14:30:47 UTC