From 7f6ef7ffad9f8f118f18503dc015d441e47f6d24 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 26 Aug 2012 20:15:03 -0400 Subject: [PATCH] Autocomplete tests: Added test for widget() method. --- tests/unit/autocomplete/autocomplete_methods.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ) ); -- 2.39.5