aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-04-04 12:00:04 -0400
committerScott González <scott.gonzalez@gmail.com>2011-04-04 12:00:04 -0400
commit9a1d8891b73573a9fb373476576362f36c0accd3 (patch)
treed93695d35ee5c006b80c16b035f2176a7537eb62
parent80b6de1b7877f228f7fc5ce1a85766538f4218a1 (diff)
downloadjquery-ui-9a1d8891b73573a9fb373476576362f36c0accd3.tar.gz
jquery-ui-9a1d8891b73573a9fb373476576362f36c0accd3.zip
Accordion: Removed unnecessary test.
-rw-r--r--tests/unit/accordion/accordion_events.js18
1 files changed, 2 insertions, 16 deletions
diff --git a/tests/unit/accordion/accordion_events.js b/tests/unit/accordion/accordion_events.js
index f7d9aabef..161da25bf 100644
--- a/tests/unit/accordion/accordion_events.js
+++ b/tests/unit/accordion/accordion_events.js
@@ -3,7 +3,7 @@
module( "accordion: events", accordionSetupTeardown() );
test( "beforeActivate", function() {
- expect( 47 );
+ expect( 38 );
var ac = $( "#list1" ).accordion({
active: false,
collapsible: true
@@ -57,27 +57,13 @@ test( "beforeActivate", function() {
equals( ui.oldHeader.size(), 0 );
equals( ui.oldContent.size(), 0 );
equals( ui.newHeader.size(), 1 );
- strictEqual( ui.newHeader[ 0 ], headers[ 1 ] );
- equals( ui.newContent.size(), 1 );
- strictEqual( ui.newContent[ 0 ], content[ 1 ] );
- event.preventDefault();
- state( ac, 0, 0, 0 );
- });
- ac.accordion( "option", "active", 1 );
- state( ac, 0, 0, 0 );
-
- ac.one( "accordionbeforeactivate", function( event, ui ) {
- equals( event.originalEvent.type, "click" );
- equals( ui.oldHeader.size(), 0 );
- equals( ui.oldContent.size(), 0 );
- equals( ui.newHeader.size(), 1 );
strictEqual( ui.newHeader[ 0 ], headers[ 2 ] );
equals( ui.newContent.size(), 1 );
strictEqual( ui.newContent[ 0 ], content[ 2 ] );
event.preventDefault();
state( ac, 0, 0, 0 );
});
- headers.eq( 2 ).click();
+ ac.accordion( "option", "active", 2 );
state( ac, 0, 0, 0 );
});