Skip to content

Commit 9b3bade

Browse files
committed
Autocomplete unit test: corrected name and argument order of equal() call in autoFocus test function
1 parent 4026d3a commit 9b3bade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/autocomplete/autocomplete_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function autoFocusTest( afValue, focusedLength ) {
103103
delay: 0,
104104
source: data,
105105
open: function( event, ui ) {
106-
equals( focusedLength, ac.autocomplete( "widget" ).children( ".ui-menu-item:first .ui-state-focus" ).length, "first item is " + afValue ? "" : "not" + " auto focused" );
106+
equal( ac.autocomplete( "widget" ).children( ".ui-menu-item:first .ui-state-focus" ).length, focusedLength, "first item is " + afValue ? "" : "not" + " auto focused" );
107107
start();
108108
}
109109
});

0 commit comments

Comments
 (0)