module( "accordion: events", setupTeardown() );
test( "create", function() {
- expect( 10 );
+ expect( 15 );
var element = $( "#list1" ),
headers = element.children( "h3" ),
create: function( event, ui ) {
equal( ui.header.length, 1, "header length" );
strictEqual( ui.header[ 0 ], headers[ 0 ], "header" );
+ equal( ui.panel.length, 1, "panel length" );
+ strictEqual( ui.panel[ 0 ], contents[ 0 ], "panel" );
equal( ui.content.length, 1, "content length" );
strictEqual( ui.content[ 0 ], contents[ 0 ], "content" );
}
create: function( event, ui ) {
equal( ui.header.length, 1, "header length" );
strictEqual( ui.header[ 0 ], headers[ 2 ], "header" );
+ equal( ui.panel.length, 1, "panel length" );
+ strictEqual( ui.panel[ 0 ], contents[ 2 ], "panel" );
equal( ui.content.length, 1, "content length" );
strictEqual( ui.content[ 0 ], contents[ 2 ], "content" );
}
collapsible: true,
create: function( event, ui ) {
equal( ui.header.length, 0, "header length" );
+ equal( ui.panel.length, 0, "panel length" );
equal( ui.content.length, 0, "content length" );
}
});