]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion tests: Fixed location of expect() call.
authorScott González <scott.gonzalez@gmail.com>
Tue, 26 Jul 2011 18:36:18 +0000 (14:36 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Jul 2011 18:36:18 +0000 (14:36 -0400)
tests/unit/accordion/accordion_core.js

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