From e8619f762b02c5eb756edb0fcb1d1fac5fe807ea Mon Sep 17 00:00:00 2001 From: Pavel Lishin Date: Tue, 29 Oct 2013 17:06:43 -0400 Subject: [PATCH] Set status to 0 and statusText to "abort" when FakeXMLHttpRequest.abort is called --- lib/mock-ajax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mock-ajax.js b/lib/mock-ajax.js index 845d404..e9d40b1 100644 --- a/lib/mock-ajax.js +++ b/lib/mock-ajax.js @@ -115,6 +115,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. abort: function() { this.readyState = 0; + this.status = 0; + this.statusText = "abort"; }, readyState: 0,