Merge pull request #497 from dmethvin/fix-7788-ui-autocomplete

Autocomplete tests: Fix #7788, incorrect selector in autoFocus test.
This commit is contained in:
Scott González 2011-10-13 10:23:58 -07:00
commit ae96ef7754

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