mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 21:48:45 +02:00
N°5621 Move jquery-migrate 3.1.0 to NPM
This commit is contained in:
24
node_modules/jquery-migrate/test/ajax.js
generated
vendored
Normal file
24
node_modules/jquery-migrate/test/ajax.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
QUnit.module( "ajax" );
|
||||
|
||||
QUnit.test( "jQuery.ajax() deprecations on jqXHR", function( assert ) {
|
||||
assert.expect( 3 );
|
||||
|
||||
var done = assert.async();
|
||||
|
||||
expectWarning( assert, ".success(), .error(), .compete() calls", 3, function() {
|
||||
|
||||
jQuery.ajax( "/not-found.404" )
|
||||
.success( jQuery.noop )
|
||||
.error( function( jQXHR ) {
|
||||
|
||||
// Local file errors returns 0, pretend it's a 404
|
||||
assert.equal( jQXHR.status || 404, 404, "ajax error" );
|
||||
} )
|
||||
.complete( function() {
|
||||
assert.ok( true, "ajax complete" );
|
||||
// Wait for expectWarning to complete
|
||||
setTimeout(done, 1);
|
||||
} );
|
||||
} );
|
||||
|
||||
} );
|
||||
Reference in New Issue
Block a user