mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
7537bab562
commit
d84c5a7c1d
226 changed files with 51770 additions and 4157 deletions
47
dashboard-ui/bower_components/jquery/test/unit/deprecated.js
vendored
Normal file
47
dashboard-ui/bower_components/jquery/test/unit/deprecated.js
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
QUnit.module( "deprecated", { teardown: moduleTeardown } );
|
||||
|
||||
QUnit.test( "bind/unbind", function( assert ) {
|
||||
assert.expect( 4 );
|
||||
|
||||
var markup = jQuery(
|
||||
"<div><p><span><b>b</b></span></p></div>"
|
||||
);
|
||||
|
||||
markup
|
||||
.find( "b" )
|
||||
.bind( "click", { bindData: 19 }, function( e, trig ) {
|
||||
assert.equal( e.type, "click", "correct event type" );
|
||||
assert.equal( e.data.bindData, 19, "correct trigger data" );
|
||||
assert.equal( trig, 42, "correct bind data" );
|
||||
assert.equal( e.target.nodeName.toLowerCase(), "b", "correct element" );
|
||||
} )
|
||||
.trigger( "click", [ 42 ] )
|
||||
.unbind( "click" )
|
||||
.trigger( "click" )
|
||||
.remove();
|
||||
} );
|
||||
|
||||
QUnit.test( "delegate/undelegate", function( assert ) {
|
||||
assert.expect( 2 );
|
||||
|
||||
var markup = jQuery(
|
||||
"<div><p><span><b>b</b></span></p></div>"
|
||||
);
|
||||
|
||||
markup
|
||||
.delegate( "b", "click", function( e ) {
|
||||
assert.equal( e.type, "click", "correct event type" );
|
||||
assert.equal( e.target.nodeName.toLowerCase(), "b", "correct element" );
|
||||
} )
|
||||
.find( "b" )
|
||||
.trigger( "click" )
|
||||
.end()
|
||||
.undelegate( "b", "click" )
|
||||
.remove();
|
||||
} );
|
||||
if ( jQuery.fn.size ) {
|
||||
QUnit.test("size()", function( assert ) {
|
||||
assert.expect( 1 );
|
||||
assert.equal( jQuery("#qunit-fixture p").size(), 6, "Get Number of Elements Found" );
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue