Skip to content
Permalink
Browse files

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.
  • Loading branch information...
dmethvin committed Oct 13, 2011
1 parent 9a274c0 commit 9b3ada43d3a41f4cd5ae9e62d1131170d9686af6
Showing with 1 addition and 1 deletion.
  1. +1 −1 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();
}

0 comments on commit 9b3ada4

Please sign in to comment.
You can’t perform that action at this time.