We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e19d826 commit 316d0afCopy full SHA for 316d0af
tests/unit/accordion/accordion_events.js
@@ -68,7 +68,7 @@ test( "beforeActivate", function() {
68
});
69
70
test( "activate", function() {
71
- expect( 20 );
+ expect( 21 );
72
var ac = $( "#list1" ).accordion({
73
active: false,
74
collapsible: true
@@ -107,6 +107,16 @@ test( "activate", function() {
107
equals( ui.newContent.size(), 0 );
108
109
ac.accordion( "option", "active", false );
110
+
111
+ // prevent activation
112
+ ac.one( "accordionbeforeactivate", function( event ) {
113
+ ok( true );
114
+ event.preventDefault();
115
+ });
116
+ ac.one( "accordionactivate", function() {
117
+ ok( false );
118
119
+ ac.accordion( "option", "active", 1 );
120
121
122
}( jQuery ) );
0 commit comments