Accordion tests: Fixed location of expect() call.

This commit is contained in:
Scott González 2011-07-26 14:36:18 -04:00
parent 02903259e1
commit da0714e0dc

View File

@ -3,8 +3,8 @@
module( "accordion: core", accordionSetupTeardown() ); module( "accordion: core", accordionSetupTeardown() );
$.each( { div: "#list1", ul: "#navigation", dl: "#accordion-dl" }, function( type, selector ) { $.each( { div: "#list1", ul: "#navigation", dl: "#accordion-dl" }, function( type, selector ) {
expect( 4 );
test( "markup structure: " + type, function() { test( "markup structure: " + type, function() {
expect( 4 );
var element = $( selector ).accordion(); var element = $( selector ).accordion();
ok( element.hasClass( "ui-accordion" ), "main element is .ui-accordion" ); ok( element.hasClass( "ui-accordion" ), "main element is .ui-accordion" );
equal( element.find( ".ui-accordion-header" ).length, 3, equal( element.find( ".ui-accordion-header" ).length, 3,