diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2010-02-02 14:04:50 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2010-02-02 14:04:50 +0000 |
commit | df391a998fe3af2fe950e7c07921f70c02e8d541 (patch) | |
tree | 7b958e3bbb46ae91ca43591305deb5269e71b7ff /tests/unit/autocomplete/autocomplete_options.js | |
parent | d549ba6d43072f65c56159a136ad4c077d859d36 (diff) | |
download | jquery-ui-df391a998fe3af2fe950e7c07921f70c02e8d541.tar.gz jquery-ui-df391a998fe3af2fe950e7c07921f70c02e8d541.zip |
Fix for #5120 - create menu only once and return that element from the widget method, put ui-autocomplete class on menu
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_options.js')
-rw-r--r-- | tests/unit/autocomplete/autocomplete_options.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/autocomplete/autocomplete_options.js b/tests/unit/autocomplete/autocomplete_options.js index 5a3a7d732..bd07ab7eb 100644 --- a/tests/unit/autocomplete/autocomplete_options.js +++ b/tests/unit/autocomplete/autocomplete_options.js @@ -71,12 +71,12 @@ test("delay", function() { }); ac.val("ja").keydown(); - same( $(".ui-menu").length, 0 ); + same( $(".ui-menu:visible").length, 0 ); // wait half a second for the default delay to open the menu stop(); setTimeout(function() { - same( $(".ui-menu").length, 1 ); + same( $(".ui-menu:visible").length, 1 ); ac.autocomplete("destroy"); start(); }, 100); @@ -87,11 +87,11 @@ test("minLength", function() { source: data }); ac.autocomplete("search", ""); - same( $(".ui-menu").length, 0, "blank not enough for minLength: 1" ); + same( $(".ui-menu:visible").length, 0, "blank not enough for minLength: 1" ); ac.autocomplete("option", "minLength", 0); ac.autocomplete("search", ""); - same( $(".ui-menu").length, 1, "blank enough for minLength: 0" ); + same( $(".ui-menu:visible").length, 1, "blank enough for minLength: 0" ); ac.autocomplete("destroy"); }); |