Skip to content

Commit

Permalink
Autocomplete unit test: corrected name and argument order of equal() …
Browse files Browse the repository at this point in the history
…call in autoFocus test function
  • Loading branch information
rdworth committed Mar 15, 2011
1 parent 4026d3a commit 9b3bade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/autocomplete/autocomplete_options.js
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-focus" ).length, focusedLength, "first item is " + afValue ? "" : "not" + " auto focused" );
start();
}
});
Expand Down

0 comments on commit 9b3bade

Please sign in to comment.