From 003baaaa4a4edaec719e1d6907ba7131cfcbf996 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Tue, 15 Mar 2011 12:53:58 -0400 Subject: [PATCH] Accordion unit test: corrected autoFocus test to check for ui-state-hover instead of ui-state-focus. Also corrected name and argument order of equal() call --- 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..6ec4b69f2 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-hover" ).length, focusedLength, "first item is " + afValue ? "" : "not" + " auto focused" ); start(); } }); -- 2.39.5