diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-10-13 10:23:58 -0700 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-10-13 10:23:58 -0700 |
commit | ae96ef7754caf05de7025e0ffe24f5af652747b5 (patch) | |
tree | 15cf73f1004c2ba65137690c20e2453615ea753e | |
parent | 9a274c06756dabb2797997a27393cc7da4eed5f5 (diff) | |
parent | 9b3ada43d3a41f4cd5ae9e62d1131170d9686af6 (diff) | |
download | jquery-ui-ae96ef7754caf05de7025e0ffe24f5af652747b5.tar.gz jquery-ui-ae96ef7754caf05de7025e0ffe24f5af652747b5.zip |
Merge pull request #497 from dmethvin/fix-7788-ui-autocomplete
Autocomplete tests: Fix #7788, incorrect selector in autoFocus test.
-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(); } |