]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu tests: Removed test for key handling when the element doens't have focus (illogi...
authorScott González <scott.gonzalez@gmail.com>
Tue, 17 Jul 2012 18:08:16 +0000 (14:08 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 17 Jul 2012 18:08:16 +0000 (14:08 -0400)
tests/unit/menu/menu_events.js

index 8eb8ee8c62b6b151f6f5fa5b36a134fbc89cf41c..69ae2e14ff53aeb1c28f37ac8a0b3d7a35c72e00 100644 (file)
@@ -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 );