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:
Richard Worth 2011-03-15 12:53:58 -04:00
parent 3cfba5d9a8
commit 003baaaa4a

View File

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