aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-08-26 20:15:03 -0400
committerScott González <scott.gonzalez@gmail.com>2012-08-26 20:15:03 -0400
commit7f6ef7ffad9f8f118f18503dc015d441e47f6d24 (patch)
treef3adc30b3b962daf8e601f56ec0287786ab78977 /tests
parent103463323a0c4108c29ab7b6859d83067aafc4c6 (diff)
downloadjquery-ui-7f6ef7ffad9f8f118f18503dc015d441e47f6d24.tar.gz
jquery-ui-7f6ef7ffad9f8f118f18503dc015d441e47f6d24.zip
Autocomplete tests: Added test for widget() method.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/autocomplete/autocomplete_methods.js8
1 files changed, 8 insertions, 0 deletions
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 ) );