Skip to content

Commit

Permalink
Accordion unit test: corrected autoFocus test to check for ui-state-h…
Browse files Browse the repository at this point in the history
…over instead of ui-state-focus. Also corrected name and argument order of equal() call
  • Loading branch information
rdworth committed Mar 15, 2011
1 parent 3cfba5d commit 003baaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/autocomplete/autocomplete_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand Down

0 comments on commit 003baaa

Please sign in to comment.