Autocomplete tests: Added test for widget() method.

This commit is contained in:
Scott González 2012-08-26 20:15:03 -04:00
parent 103463323a
commit 7f6ef7ffad

View File

@ -34,4 +34,12 @@ test( "search, close", function() {
ok( menu.is( ":hidden" ), "menu is hidden after close" );
});
test( "widget", function() {
expect( 2 );
var element = $( "#autocomplete" ).autocomplete(),
widgetElement = element.autocomplete( "widget" );
equal( widgetElement.length, 1, "one element" );
ok( widgetElement.is( ".ui-menu" ), "menu element" );
});
}( jQuery ) );