Merge pull request #41

This commit is contained in:
JR and Sheel Choksi 2013-11-01 12:09:55 -07:00
commit 546549cb5f
2 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
abort: function() { abort: function() {
this.readyState = 0; this.readyState = 0;
this.status = 0;
this.statusText = "abort";
}, },
readyState: 0, readyState: 0,

View File

@ -38,6 +38,8 @@ describe("FakeXMLHttpRequest", function() {
it("should have a readyState of 0 (uninitialized)", function() { it("should have a readyState of 0 (uninitialized)", function() {
xhr.abort(); xhr.abort();
expect(xhr.readyState).toEqual(0); expect(xhr.readyState).toEqual(0);
expect(xhr.status).toEqual(0);
expect(xhr.statusText).toEqual("abort");
}); });
}); });
}); });