setupTeardown = TestHelpers.accordion.setupTeardown,
state = TestHelpers.accordion.state;
-module( "accordion (deprecated) - resize", setupTeardown() );
-
-test( "resize", function() {
- expect( 6 );
- var element = $( "#navigation" )
- .parent()
- .height( 300 )
- .end()
- .accordion({
- heightStyle: "fill"
- });
- equalHeight( element, 255 );
-
- element.parent().height( 500 );
- element.accordion( "resize" );
- equalHeight( element, 455 );
-});
-
-
-
-
-
module( "accordion (deprecated) - changestart/change events", setupTeardown() );
test( "changestart", function() {
// DEPRECATED
if ( $.uiBackCompat !== false ) {
- // resize method
- jQuery.ui.accordion.prototype.resize = jQuery.ui.accordion.prototype.refresh;
-
// change events
(function( $, prototype ) {
$.extend( prototype.options, {