aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-02-15 05:41:38 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-02-17 09:59:22 +0300
commit9368a8cd8ca81902b8359188668973e489fca6db (patch)
treeb3de2eb52a2fbfb3444758f963325904e6963131 /test
parent04fc80121756189e1270b1336b4202f99726fa14 (diff)
downloadjquery-9368a8cd8ca81902b8359188668973e489fca6db.tar.gz
jquery-9368a8cd8ca81902b8359188668973e489fca6db.zip
Ajax: remove deprecated extensions from ajax promise
(cherry-picked from 9d1b989f20b550af3590691723b0620f6914626e) Fixes gh-2084 Closes gh-2092
Diffstat (limited to 'test')
-rw-r--r--test/unit/ajax.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 718ddaf82..f030b48fc 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -72,11 +72,11 @@ module( "ajax", {
},
success: true,
afterSend: function( request ) {
- request.complete(function() {
+ request.always(function() {
ok( true, "complete" );
- }).success(function() {
+ }).done(function() {
ok( true, "success" );
- }).error(function() {
+ }).fail(function() {
ok( false, "error" );
});
}
@@ -90,11 +90,11 @@ module( "ajax", {
},
success: true,
complete: function( xhr ) {
- xhr.complete(function() {
+ xhr.always(function() {
ok( true, "complete" );
- }).success(function() {
+ }).done(function() {
ok( true, "success" );
- }).error(function() {
+ }).fail(function() {
ok( false, "error" );
});
}