aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-10-13 13:18:30 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-10-13 13:18:30 -0400
commit9b3ada43d3a41f4cd5ae9e62d1131170d9686af6 (patch)
tree15cf73f1004c2ba65137690c20e2453615ea753e
parent9a274c06756dabb2797997a27393cc7da4eed5f5 (diff)
downloadjquery-ui-9b3ada43d3a41f4cd5ae9e62d1131170d9686af6.tar.gz
jquery-ui-9b3ada43d3a41f4cd5ae9e62d1131170d9686af6.zip
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.
-rw-r--r--tests/unit/autocomplete/autocomplete_options.js2
1 files changed, 1 insertions, 1 deletions
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();
}
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150