From 9b3badea6cce68e5b93a18d54e0eb836b3c3b406 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Tue, 15 Mar 2011 12:55:16 -0400 Subject: [PATCH] Autocomplete unit test: corrected name and argument order of equal() call in autoFocus test function --- tests/unit/autocomplete/autocomplete_options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }); -- 2.39.5