aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/deprecated.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2023-03-15 11:44:08 +0100
committerGitHub <noreply@github.com>2023-03-15 11:44:08 +0100
commitcff2899885c314d32eea42e9eef6ead6e5da5c2f (patch)
treed156edf121a390dd137b3fb7c9a43b200433c2c2 /test/unit/deprecated.js
parent258ca1ec6a373f85f7849308c967b7e6a993e6e7 (diff)
downloadjquery-cff2899885c314d32eea42e9eef6ead6e5da5c2f.tar.gz
jquery-cff2899885c314d32eea42e9eef6ead6e5da5c2f.zip
Tests: Test AJAX deprecated event aliases properly
PR gh-5046 erroneously changed AJAX deprecated event alias usage in deprecated tests to `.on()` calls. This change reverses this mistake. Closes gh-5195 Ref gh-5046
Diffstat (limited to 'test/unit/deprecated.js')
-rw-r--r--test/unit/deprecated.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/deprecated.js b/test/unit/deprecated.js
index f85209d53..bddd40105 100644
--- a/test/unit/deprecated.js
+++ b/test/unit/deprecated.js
@@ -97,7 +97,7 @@ QUnit.test( "trigger() shortcuts", function( assert ) {
} );
if ( includesModule( "ajax" ) ) {
- ajaxTest( "jQuery.ajax() - events with context", 12, function( assert ) {
+ ajaxTest( "Ajax events aliases (with context)", 12, function( assert ) {
var context = document.createElement( "div" );
function event( e ) {
@@ -113,10 +113,10 @@ if ( includesModule( "ajax" ) ) {
return {
setup: function() {
jQuery( context ).appendTo( "#foo" )
- .on( "ajaxSend", event )
- .on( "ajaxComplete", event )
- .on( "ajaxError", event )
- .on( "ajaxSuccess", event );
+ .ajaxSend( event )
+ .ajaxComplete( event )
+ .ajaxError( event )
+ .ajaxSuccess( event );
},
requests: [ {
url: url( "name.html" ),