mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Accordion unit test: corrected autoFocus test to check for ui-state-hover instead of ui-state-focus. Also corrected name and argument order of equal() call
This commit is contained in:
parent
3cfba5d9a8
commit
003baaaa4a
@ -103,7 +103,7 @@ function autoFocusTest( afValue, focusedLength ) {
|
||||
delay: 0,
|
||||
source: data,
|
||||
open: function( event, ui ) {
|
||||
equals( focusedLength, ac.autocomplete( "widget" ).children( ".ui-menu-item:first .ui-state-focus" ).length, "first item is " + afValue ? "" : "not" + " auto focused" );
|
||||
equal( ac.autocomplete( "widget" ).children( ".ui-menu-item:first .ui-state-hover" ).length, focusedLength, "first item is " + afValue ? "" : "not" + " auto focused" );
|
||||
start();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user