From 9b3ada43d3a41f4cd5ae9e62d1131170d9686af6 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 13 Oct 2011 13:18:30 -0400 Subject: [PATCH] Autocomplete tests: Fix #7788, incorrect selector in autoFocus test. jQuery 1.7 fixed a bug with positional selectors that exposed the incorrect use of `.children()` here. --- 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 8d11aa399..114e9a42b 100644 --- a/tests/unit/autocomplete/autocomplete_options.js +++ b/tests/unit/autocomplete/autocomplete_options.js @@ -34,7 +34,7 @@ function autoFocusTest( afValue, focusedLength ) { delay: 0, source: data, open: function( event, ui ) { - equal( element.autocomplete( "widget" ).children( ".ui-menu-item:first .ui-state-focus" ).length, + equal( element.autocomplete( "widget" ).children( ".ui-menu-item:first" ).find( ".ui-state-focus" ).length, focusedLength, "first item is " + (afValue ? "" : "not") + " auto focused" ); start(); } -- 2.39.5