Skip to content
Browse files

Accordion unit test: corrected autoFocus test to check for ui-state-h…

…over instead of ui-state-focus. Also corrected name and argument order of equal() call
  • Loading branch information...
1 parent 3cfba5d commit 003baaaa4a4edaec719e1d6907ba7131cfcbf996 @rdworth rdworth committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/unit/autocomplete/autocomplete_options.js
View
2 tests/unit/autocomplete/autocomplete_options.js
@@ -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();
}
});

0 comments on commit 003baaa

Please sign in to comment.
Something went wrong with that request. Please try again.