Skip to content
Permalink
Browse files

Autocomplete tests: Update tests now that generated menu doesn't have…

… anchors in elements
  • Loading branch information
kborchers committed Oct 6, 2013
1 parent 31e705a commit 9620812986a090668c44d48a7c85a46b580a89df
Showing with 2 additions and 3 deletions.
  1. +1 −1 tests/unit/autocomplete/autocomplete_core.js
  2. +1 −2 tests/unit/autocomplete/autocomplete_options.js
@@ -16,7 +16,7 @@ test( "prevent form submit on enter when menu is active", function() {
event = $.Event( "keydown" );
event.keyCode = $.ui.keyCode.DOWN;
element.trigger( event );
deepEqual( menu.find( ".ui-menu-item:has(.ui-state-focus)" ).length, 1, "menu item is active" );
equal( menu.find( ".ui-menu-item.ui-state-focus" ).length, 1, "menu item is active" );

event = $.Event( "keydown" );
event.keyCode = $.ui.keyCode.ENTER;
@@ -62,8 +62,7 @@ function autoFocusTest( afValue, focusedLength ) {
open: function() {
equal(
element.autocomplete( "widget" )
.children( ".ui-menu-item:first" )
.find( ".ui-state-focus" )
.children( ".ui-menu-item.ui-state-focus" )
.length,
focusedLength,
"first item is " + (afValue ? "" : "not") + " auto focused" );

0 comments on commit 9620812

Please sign in to comment.
You can’t perform that action at this time.