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.
This commit is contained in:
Dave Methvin 2011-10-13 13:18:30 -04:00
parent 9a274c0675
commit 9b3ada43d3

View File

@ -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();
}