mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu tests: Removed test for key handling when the element doens't have focus (illogical test).
This commit is contained in:
parent
8d4036cf90
commit
f7b32d9a8f
@ -577,22 +577,4 @@ test( "handle keyboard navigation with spelling of menu items", function() {
|
||||
element.focus();
|
||||
});
|
||||
|
||||
asyncTest( "handle page up and page down before the menu has focus", function() {
|
||||
expect( 1 );
|
||||
var element = $( "#menu1" ).menu({
|
||||
focus: function( event, ui ) {
|
||||
log( $( event.target ).find( ".ui-state-focus" ).parent().index() );
|
||||
}
|
||||
});
|
||||
|
||||
log( "keydown", true );
|
||||
element.simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_DOWN } );
|
||||
element.blur();
|
||||
setTimeout( function() {
|
||||
element.simulate( "keydown", { keyCode: $.ui.keyCode.PAGE_UP } );
|
||||
equal( logOutput(), "keydown,0,0", "Page Up and Page Down bring initial focus to first item" );
|
||||
start();
|
||||
}, 500 );
|
||||
});
|
||||
|
||||
})( jQuery );
|
||||
|
Loading…
Reference in New Issue
Block a user