]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion unit test: corrected autoFocus test to check for ui-state-hover instead...
authorRichard Worth <rdworth@gmail.com>
Tue, 15 Mar 2011 16:53:58 +0000 (12:53 -0400)
committerRichard Worth <rdworth@gmail.com>
Tue, 15 Mar 2011 16:53:58 +0000 (12:53 -0400)
tests/unit/autocomplete/autocomplete_options.js

index be2f28391e1fa51fd7e6b569a9241eb051c63a23..6ec4b69f255b2e82c5aea0abf661b748d5595639 100644 (file)
@@ -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();                        
                }
        });