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
This commit is contained in:
Michał Gołębiowski-Owczarek 2023-03-15 11:44:08 +01:00 committed by GitHub
parent 258ca1ec6a
commit cff2899885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" ),