Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 003baaaa4a4edaec719e1d6907ba7131cfcbf996 1 parent 3cfba5d
@rdworth rdworth authored
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();
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.