From: Scott González Date: Mon, 27 Aug 2012 00:15:03 +0000 (-0400) Subject: Autocomplete tests: Added test for widget() method. X-Git-Tag: 1.9.0~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f6ef7ffad9f8f118f18503dc015d441e47f6d24;p=jquery-ui.git Autocomplete tests: Added test for widget() method. --- diff --git a/tests/unit/autocomplete/autocomplete_methods.js b/tests/unit/autocomplete/autocomplete_methods.js index 1600d73dc..1bfa10554 100644 --- a/tests/unit/autocomplete/autocomplete_methods.js +++ b/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 ) );