From 151fb59c0fd7ab66a48eed64acef25436620efd1 Mon Sep 17 00:00:00 2001 From: "JiaLi.Passion" Date: Fri, 30 Dec 2016 01:41:32 +0900 Subject: [PATCH] rename test case name --- test/browser/XMLHttpRequest.spec.ts | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/test/browser/XMLHttpRequest.spec.ts b/test/browser/XMLHttpRequest.spec.ts index 681693c31..6a9743b0d 100644 --- a/test/browser/XMLHttpRequest.spec.ts +++ b/test/browser/XMLHttpRequest.spec.ts @@ -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(); + } + }); + }); + }); });