Skip to content

Commit ae96ef7

Browse files
committed
Merge pull request jquery#497 from dmethvin/fix-7788-ui-autocomplete
Autocomplete tests: Fix #7788, incorrect selector in autoFocus test.
2 parents 9a274c0 + 9b3ada4 commit ae96ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/autocomplete/autocomplete_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function autoFocusTest( afValue, focusedLength ) {
3434
delay: 0,
3535
source: data,
3636
open: function( event, ui ) {
37-
equal( element.autocomplete( "widget" ).children( ".ui-menu-item:first .ui-state-focus" ).length,
37+
equal( element.autocomplete( "widget" ).children( ".ui-menu-item:first" ).find( ".ui-state-focus" ).length,
3838
focusedLength, "first item is " + (afValue ? "" : "not") + " auto focused" );
3939
start();
4040
}

0 commit comments

Comments
 (0)