]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete unit test: corrected name and argument order of equal() call in autoFocu...
authorRichard Worth <rdworth@gmail.com>
Tue, 15 Mar 2011 16:55:16 +0000 (12:55 -0400)
committerRichard Worth <rdworth@gmail.com>
Tue, 15 Mar 2011 16:55:16 +0000 (12:55 -0400)
tests/unit/autocomplete/autocomplete_options.js

index be2f28391e1fa51fd7e6b569a9241eb051c63a23..f2da2f4aa1bcdfaa48618ddb6cc8bb23fdb888dd 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-focus" ).length, focusedLength, "first item is " + afValue ? "" : "not" + " auto focused" );
                        start();                        
                }
        });