Accordion tests: Cleanup.

This commit is contained in:
Scott González 2011-08-04 09:53:13 -04:00
parent e55e1fb5bf
commit 7134033365
6 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
(function( $ ) { (function( $ ) {
module( "accordion: core", accordionSetupTeardown() ); module( "accordion: core", accordion_setupTeardown() );
$.each( { div: "#list1", ul: "#navigation", dl: "#accordion-dl" }, function( type, selector ) { $.each( { div: "#list1", ul: "#navigation", dl: "#accordion-dl" }, function( type, selector ) {
test( "markup structure: " + type, function() { test( "markup structure: " + type, function() {

View File

@ -1,6 +1,6 @@
(function( $ ) { (function( $ ) {
module( "accordion (deprecated): expanded active option, activate method", accordionSetupTeardown() ); module( "accordion (deprecated): expanded active option, activate method", accordion_setupTeardown() );
test( "activate, numeric", function() { test( "activate, numeric", function() {
expect( 5 ); expect( 5 );
@ -101,7 +101,7 @@ test( "{ active: jQuery Object }", function() {
module( "accordion (deprecated) - height options", accordionSetupTeardown() ); module( "accordion (deprecated) - height options", accordion_setupTeardown() );
test( "{ autoHeight: true }, default", function() { test( "{ autoHeight: true }, default", function() {
expect( 3 ); expect( 3 );
@ -174,7 +174,7 @@ test( "{ fillSpace: true } with multiple siblings", function() {
module( "accordion (deprecated) - icons", accordionSetupTeardown() ); module( "accordion (deprecated) - icons", accordion_setupTeardown() );
test( "icons, headerSelected", function() { test( "icons, headerSelected", function() {
expect( 3 ); expect( 3 );
@ -191,7 +191,7 @@ test( "icons, headerSelected", function() {
module( "accordion (deprecated) - resize", accordionSetupTeardown() ); module( "accordion (deprecated) - resize", accordion_setupTeardown() );
test( "resize", function() { test( "resize", function() {
expect( 6 ); expect( 6 );
@ -213,7 +213,7 @@ test( "resize", function() {
module( "accordion (deprecated) - navigation", accordionSetupTeardown() ); module( "accordion (deprecated) - navigation", accordion_setupTeardown() );
test( "{ navigation: true, navigationFilter: header }", function() { test( "{ navigation: true, navigationFilter: header }", function() {
expect( 2 ); expect( 2 );
@ -243,7 +243,7 @@ test( "{ navigation: true, navigationFilter: content }", function() {
module( "accordion (deprecated) - changestart/change events", accordionSetupTeardown() ); module( "accordion (deprecated) - changestart/change events", accordion_setupTeardown() );
test( "changestart", function() { test( "changestart", function() {
expect( 26 ); expect( 26 );

View File

@ -1,6 +1,6 @@
(function( $ ) { (function( $ ) {
module( "accordion: events", accordionSetupTeardown() ); module( "accordion: events", accordion_setupTeardown() );
test( "beforeActivate", function() { test( "beforeActivate", function() {
expect( 38 ); expect( 38 );

View File

@ -1,6 +1,6 @@
(function( $ ) { (function( $ ) {
module( "accordion: methods", accordionSetupTeardown() ); module( "accordion: methods", accordion_setupTeardown() );
test( "destroy", function() { test( "destroy", function() {
expect( 1 ); expect( 1 );

View File

@ -1,6 +1,6 @@
(function( $ ) { (function( $ ) {
module( "accordion: options", accordionSetupTeardown() ); module( "accordion: options", accordion_setupTeardown() );
test( "{ active: default }", function() { test( "{ active: default }", function() {
expect( 2 ); expect( 2 );

View File

@ -17,7 +17,7 @@ function accordion_equalHeights( accordion, min, max ) {
deepEqual( sizes[ 0 ], sizes[ 2 ] ); deepEqual( sizes[ 0 ], sizes[ 2 ] );
} }
function accordionSetupTeardown() { function accordion_setupTeardown() {
var animated = $.ui.accordion.prototype.options.animated; var animated = $.ui.accordion.prototype.options.animated;
return { return {
setup: function() { setup: function() {