Tabs tests: Added test for widget() method.

This commit is contained in:
Scott González 2012-08-26 20:20:43 -04:00
parent 1540f4afc8
commit 072919467d

View File

@ -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 ) ); }( jQuery ) );