Merge pull request #41
This commit is contained in:
commit
546549cb5f
@ -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,
|
||||
|
@ -38,6 +38,8 @@ describe("FakeXMLHttpRequest", function() {
|
||||
it("should have a readyState of 0 (uninitialized)", function() {
|
||||
xhr.abort();
|
||||
expect(xhr.readyState).toEqual(0);
|
||||
expect(xhr.status).toEqual(0);
|
||||
expect(xhr.statusText).toEqual("abort");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user