[XMLHttpRequest] XMLHttpRequest test fixes (#352)

- abort-event-loadend.htm: changed to call abort() in onloadstart rather than in onreadystatechange; otherwise the test ends up with throwing InvalidStateError in send().
- getresponseheader-error-state.htm: corrected the URL composition part; without "//", location.protocol ("http:") tends to be interpreted as <protocol> + <host> + <path> by user agent, which leads the result to 404 error instead of CORS failure.

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

Received on Thursday, 26 September 2013 06:28:41 UTC