Skip to content
Permalink
Browse files

Tabs tests: Added test for widget() method.

  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent 1540f4a commit 072919467dec74e2c4b2b3af0ed005a861cf6ff9
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/unit/tabs/tabs_methods.js
@@ -264,4 +264,12 @@ asyncTest( "load", function() {
}
});

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

}( jQuery ) );

0 comments on commit 0729194

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