Skip to content
Permalink
Browse files

Accordion tests: Added test for widget() method.

  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent 42b21fd commit 103463323a0c4108c29ab7b6859d83067aafc4c6
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/unit/accordion/accordion_methods.js
@@ -45,4 +45,12 @@ test( "refresh", function() {
equalHeight( element, 455 );
});

test( "widget", function() {
expect( 2 );
var element = $( "#list1" ).accordion(),
widgetElement = element.accordion( "widget" );
equal( widgetElement.length, 1, "one element" );
strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" );
});

}( jQuery ) );

0 comments on commit 1034633

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