Skip to content
Permalink
Browse files

Autocomplete tests: Added test for widget() method.

  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent 1034633 commit 7f6ef7ffad9f8f118f18503dc015d441e47f6d24
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/unit/autocomplete/autocomplete_methods.js
@@ -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 ) );

0 comments on commit 7f6ef7f

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