Skip to content

Commit f7b32d9

Browse files
committed
Menu tests: Removed test for key handling when the element doens't have focus (illogical test).
1 parent 8d4036c commit f7b32d9

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/unit/menu/menu_events.js

-18
Original file line numberDiff line numberDiff line change
@@ -577,22 +577,4 @@ test( "handle keyboard navigation with spelling of menu items", function() {
577577
element.focus();
578578
});
579579

580-
asyncTest( "handle page up and page down before the menu has focus", function() {
581-
expect( 1 );
582-
var element = $( "#menu1" ).menu({
583-
focus: function( event, ui ) {
584-
log( $( event.target ).find( ".ui-state-focus" ).parent().index() );
585-
}
586-
});
587-
588-
log( "keydown", true );
589-
element.simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_DOWN } );
590-
element.blur();
591-
setTimeout( function() {
592-
element.simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_UP } );
593-
equal( logOutput(), "keydown,0,0", "Page Up and Page Down bring initial focus to first item" );
594-
start();
595-
}, 500 );
596-
});
597-
598580
})( jQuery );

0 commit comments

Comments
 (0)