Skip to content
Permalink
Browse files

Autocomplete unit test: corrected name and argument order of equal() …

…call in autoFocus test function
  • Loading branch information
rdworth committed Mar 15, 2011
1 parent 4026d3a commit 9b3badea6cce68e5b93a18d54e0eb836b3c3b406
Showing with 1 addition and 1 deletion.
  1. +1 −1 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-focus" ).length, focusedLength, "first item is " + afValue ? "" : "not" + " auto focused" );
start();
}
});

0 comments on commit 9b3bade

Please sign in to comment.
You can’t perform that action at this time.