diff options
Diffstat (limited to 'tests/unit/autocomplete')
-rw-r--r-- | tests/unit/autocomplete/autocomplete_methods.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/unit/autocomplete/autocomplete_methods.js b/tests/unit/autocomplete/autocomplete_methods.js index 05a7d6e14..a009a83f5 100644 --- a/tests/unit/autocomplete/autocomplete_methods.js +++ b/tests/unit/autocomplete/autocomplete_methods.js @@ -38,6 +38,14 @@ test("search", function() { same( $(".ui-menu .ui-menu-item").length, 2, "only java and javascript for 'ja'" ); $("#autocomplete").autocomplete("destroy"); -}) +}); + +test("widget", function() { + var ac = $("#autocomplete").autocomplete({ + source: data + }); + same(ac.autocomplete("widget")[0], $(":ui-menu")[0]); + same(ac.autocomplete("widget").end()[0], ac[0]); +}); })(jQuery); |