N°5621 Move jquery-migrate 3.1.0 to NPM

This commit is contained in:
Pierre Goiffon
2024-03-07 15:19:35 +01:00
parent c24c1ba73c
commit 9fa036df7e
71 changed files with 14252 additions and 4 deletions

27
node_modules/jquery-migrate/test/css.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
QUnit.module( "css" );
QUnit.test( "jQuery.swap()", function( assert ) {
assert.expect( 6 );
var div = document.createElement( "div" );
div.style.borderWidth = "4px";
expectWarning( assert, "External swap() call", function() {
jQuery.swap( div, { borderRightWidth: "5px" }, function( arg ) {
assert.equal( this.style.borderRightWidth, "5px", "style was changed" );
assert.equal( arg, 42, "arg was passed" );
}, [ 42 ] );
} );
assert.equal( div.style.borderRightWidth, "4px", "style was restored" );
expectNoWarning( assert, "Internal swap() call", function() {
var $fp = jQuery( "#firstp" ).width( "10em" ),
width = $fp.width();
assert.equal( $fp.hide().width(), width, "correct width" );
} );
} );