diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-10-13 13:18:30 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-10-13 13:18:30 -0400 |
commit | 9b3ada43d3a41f4cd5ae9e62d1131170d9686af6 (patch) | |
tree | 15cf73f1004c2ba65137690c20e2453615ea753e | |
parent | 9a274c06756dabb2797997a27393cc7da4eed5f5 (diff) | |
download | jquery-ui-9b3ada43d3a41f4cd5ae9e62d1131170d9686af6.tar.gz jquery-ui-9b3ada43d3a41f4cd5ae9e62d1131170d9686af6.zip |
Autocomplete tests: Fix #7788, incorrect selector in autoFocus test.
jQuery 1.7 fixed a bug with positional selectors that exposed the incorrect use of `.children()` here.
-rw-r--r-- | tests/unit/autocomplete/autocomplete_options.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/autocomplete/autocomplete_options.js b/tests/unit/autocomplete/autocomplete_options.js index 8d11aa399..114e9a42b 100644 --- a/tests/unit/autocomplete/autocomplete_options.js +++ b/tests/unit/autocomplete/autocomplete_options.js @@ -34,7 +34,7 @@ function autoFocusTest( afValue, focusedLength ) { delay: 0, source: data, open: function( event, ui ) { - equal( element.autocomplete( "widget" ).children( ".ui-menu-item:first .ui-state-focus" ).length, + equal( element.autocomplete( "widget" ).children( ".ui-menu-item:first" ).find( ".ui-state-focus" ).length, focusedLength, "first item is " + (afValue ? "" : "not") + " auto focused" ); start(); } |