Skip to content
Permalink
Browse files

Accordion tests: Cleanup.

  • Loading branch information
scottgonzalez committed Aug 4, 2011
1 parent e55e1fb commit 713403336595776445944b0ace34eeea131c1db9
@@ -1,6 +1,6 @@
(function( $ ) {

module( "accordion: core", accordionSetupTeardown() );
module( "accordion: core", accordion_setupTeardown() );

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

module( "accordion (deprecated): expanded active option, activate method", accordionSetupTeardown() );
module( "accordion (deprecated): expanded active option, activate method", accordion_setupTeardown() );

test( "activate, numeric", function() {
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() {
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() {
expect( 3 );
@@ -191,7 +191,7 @@ test( "icons, headerSelected", function() {



module( "accordion (deprecated) - resize", accordionSetupTeardown() );
module( "accordion (deprecated) - resize", accordion_setupTeardown() );

test( "resize", function() {
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() {
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() {
expect( 26 );
@@ -1,6 +1,6 @@
(function( $ ) {

module( "accordion: events", accordionSetupTeardown() );
module( "accordion: events", accordion_setupTeardown() );

test( "beforeActivate", function() {
expect( 38 );
@@ -1,6 +1,6 @@
(function( $ ) {

module( "accordion: methods", accordionSetupTeardown() );
module( "accordion: methods", accordion_setupTeardown() );

test( "destroy", function() {
expect( 1 );
@@ -1,6 +1,6 @@
(function( $ ) {

module( "accordion: options", accordionSetupTeardown() );
module( "accordion: options", accordion_setupTeardown() );

test( "{ active: default }", function() {
expect( 2 );
@@ -17,7 +17,7 @@ function accordion_equalHeights( accordion, min, max ) {
deepEqual( sizes[ 0 ], sizes[ 2 ] );
}

function accordionSetupTeardown() {
function accordion_setupTeardown() {
var animated = $.ui.accordion.prototype.options.animated;
return {
setup: function() {

0 comments on commit 7134033

Please sign in to comment.
You can’t perform that action at this time.