aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-07-17 14:08:16 -0400
committerScott González <scott.gonzalez@gmail.com>2012-07-17 14:08:16 -0400
commitf7b32d9a8fec3967b1bb5aafa9cda88cd83cc294 (patch)
treecfd44f420f6d071ee73928198f5eeffd1db34246 /tests
parent8d4036cf901bfc6a5d2dd809fae86aedc643fac3 (diff)
downloadjquery-ui-f7b32d9a8fec3967b1bb5aafa9cda88cd83cc294.tar.gz
jquery-ui-f7b32d9a8fec3967b1bb5aafa9cda88cd83cc294.zip
Menu tests: Removed test for key handling when the element doens't have focus (illogical test).
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/menu/menu_events.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/unit/menu/menu_events.js b/tests/unit/menu/menu_events.js
index 8eb8ee8c6..69ae2e14f 100644
--- a/tests/unit/menu/menu_events.js
+++ b/tests/unit/menu/menu_events.js
@@ -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 );