aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2011-03-15 12:55:16 -0400
committerRichard Worth <rdworth@gmail.com>2011-03-15 12:55:16 -0400
commit9b3badea6cce68e5b93a18d54e0eb836b3c3b406 (patch)
tree7d2f57d3a4bba953fa40c344a8b35a30989b007c /tests/unit/autocomplete
parent4026d3acd70508ca285bd4eb182b8f0b43eae5c8 (diff)
downloadjquery-ui-9b3badea6cce68e5b93a18d54e0eb836b3c3b406.tar.gz
jquery-ui-9b3badea6cce68e5b93a18d54e0eb836b3c3b406.zip
Autocomplete unit test: corrected name and argument order of equal() call in autoFocus test function
Diffstat (limited to 'tests/unit/autocomplete')
-rw-r--r--tests/unit/autocomplete/autocomplete_options.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/autocomplete/autocomplete_options.js b/tests/unit/autocomplete/autocomplete_options.js
index be2f28391..f2da2f4aa 100644
--- a/tests/unit/autocomplete/autocomplete_options.js
+++ b/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();
}
});