diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-13 21:52:09 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-20 14:27:55 -0400 |
commit | b240eed81b96c9c4128ca5682d876fbc6f96a9c4 (patch) | |
tree | 5796ea8800d0e9a8a7acb64bf43d3830bc1e8902 /tests/unit | |
parent | ad98cb167350b8d929b71bfeefc904c8964893dd (diff) | |
download | jquery-ui-b240eed81b96c9c4128ca5682d876fbc6f96a9c4.tar.gz jquery-ui-b240eed81b96c9c4128ca5682d876fbc6f96a9c4.zip |
Accordion: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/accordion/core.js | 2 | ||||
-rw-r--r-- | tests/unit/accordion/events.js | 4 | ||||
-rw-r--r-- | tests/unit/accordion/options.js | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/accordion/core.js b/tests/unit/accordion/core.js index b1d45f77e..0a3931162 100644 --- a/tests/unit/accordion/core.js +++ b/tests/unit/accordion/core.js @@ -38,7 +38,7 @@ $.each( { div: "#list1", ul: "#navigation", dl: "#accordion-dl" }, function( typ test( "handle click on header-descendant", function() { expect( 1 ); var element = $( "#navigation" ).accordion(); - $( "#navigation h2:eq(1) a" ).click(); + $( "#navigation h2:eq(1) a" ).trigger( "click" ); state( element, 0, 1, 0 ); }); diff --git a/tests/unit/accordion/events.js b/tests/unit/accordion/events.js index 7f7390c83..fef1a0aac 100644 --- a/tests/unit/accordion/events.js +++ b/tests/unit/accordion/events.js @@ -82,7 +82,7 @@ test( "beforeActivate", function() { strictEqual( ui.newPanel[ 0 ], content[ 1 ] ); state( element, 1, 0, 0 ); }); - headers.eq( 1 ).click(); + headers.eq( 1 ).trigger( "click" ); state( element, 0, 1, 0 ); element.one( "accordionbeforeactivate", function( event, ui ) { @@ -142,7 +142,7 @@ test( "activate", function() { equal( ui.newPanel.length, 1 ); strictEqual( ui.newPanel[ 0 ], content[ 1 ] ); }); - headers.eq( 1 ).click(); + headers.eq( 1 ).trigger( "click" ); element.one( "accordionactivate", function( event, ui ) { equal( ui.oldHeader.length, 1 ); diff --git a/tests/unit/accordion/options.js b/tests/unit/accordion/options.js index c95738c43..52d54ed32 100644 --- a/tests/unit/accordion/options.js +++ b/tests/unit/accordion/options.js @@ -60,7 +60,7 @@ test( "{ active: Number }", function() { equal( element.accordion( "option", "active" ), 0 ); state( element, 1, 0, 0 ); - element.find( ".ui-accordion-header" ).eq( 1 ).click(); + element.find( ".ui-accordion-header" ).eq( 1 ).trigger( "click" ); equal( element.accordion( "option", "active" ), 1 ); state( element, 0, 1, 0 ); @@ -269,7 +269,7 @@ test( "{ collapsible: false }", function() { equal( element.accordion( "option", "active" ), 1 ); state( element, 0, 1, 0 ); - element.find( ".ui-accordion-header" ).eq( 1 ).click(); + element.find( ".ui-accordion-header" ).eq( 1 ).trigger( "click" ); equal( element.accordion( "option", "active" ), 1 ); state( element, 0, 1, 0 ); }); @@ -289,7 +289,7 @@ test( "{ collapsible: true }", function() { equal( element.accordion( "option", "active" ), 1 ); state( element, 0, 1, 0 ); - element.find( ".ui-accordion-header" ).eq( 1 ).click(); + element.find( ".ui-accordion-header" ).eq( 1 ).trigger( "click" ); equal( element.accordion( "option", "active" ), false ); state( element, 0, 0, 0 ); }); @@ -306,7 +306,7 @@ test( "{ event: null }", function() { state( element, 0, 1, 0 ); // ensure default click handler isn't bound - element.find( ".ui-accordion-header" ).eq( 2 ).click(); + element.find( ".ui-accordion-header" ).eq( 2 ).trigger( "click" ); equal( element.accordion( "option", "active" ), 1 ); state( element, 0, 1, 0 ); }); |