diff options
author | jaubourg <j@ubourg.net> | 2012-04-02 02:04:46 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2012-04-02 02:04:46 +0200 |
commit | 914df9cb42219200a0286d15e0f45a9994b8ab3d (patch) | |
tree | 2552e603e65ae0e025b9b6b3b71e84e2bef2d775 /test | |
parent | 395612bb152660226b93f7f096cd0146fc06991e (diff) | |
download | jquery-914df9cb42219200a0286d15e0f45a9994b8ab3d.tar.gz jquery-914df9cb42219200a0286d15e0f45a9994b8ab3d.zip |
For much improved consistency, jqXHR.abort() sets a default statusText of 'canceled' right until after beforeSend has been called (in which case it reverts to the default of 'abort'): now all early aborts have a statusText of 'canceled'.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/ajax.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 431f14094..963bcae7a 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -895,7 +895,7 @@ test("jQuery.ajax - beforeSend, cancel request manually", function() { ok( false, "request didn't get canceled" ); } }).fail(function( _, reason ) { - strictEqual( reason, "abort", "manually canceled request must fail with 'abort' status text" ); + strictEqual( reason, "canceled", "manually canceled request must fail with 'canceled' status text" ); }); }); @@ -2324,7 +2324,7 @@ test("jQuery.ajax - abort in prefilter", function() { ok( false, "error callback called" ); } }).fail(function( _, reason ) { - strictEqual( reason, 'abort', "Request aborted by the prefilter must fail with 'abort' status text" ); + strictEqual( reason, 'canceled', "Request aborted by the prefilter must fail with 'canceled' status text" ); }); }); |