mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Autocomplete tests: Added test for widget() method.
This commit is contained in:
parent
103463323a
commit
7f6ef7ffad
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user