mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
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:
parent
9a274c0675
commit
9b3ada43d3
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user