Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
rename test case name
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion committed Dec 29, 2016
1 parent 21d4555 commit 151fb59
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions test/browser/XMLHttpRequest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,17 @@ describe('XMLHttpRequest', function() {
});
});

it('should keep taskcount correctly when abort request after request is finished', function() {
testZone.run(function() {
const req = new XMLHttpRequest();
req.open('get', '/', true);
req.send();
req.addEventListener('readystatechange', function(ev) {
if (req.readyState >= 2) {
req.abort();
}
});
});
});
it('should keep taskcount correctly when abort was called multiple times before request is done',
function() {
testZone.run(function() {
const req = new XMLHttpRequest();
req.open('get', '/', true);
req.send();
req.addEventListener('readystatechange', function(ev) {
if (req.readyState >= 2) {
req.abort();
}
});
});
});
});

0 comments on commit 151fb59

Please sign in to comment.