diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-12-03 21:54:08 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-12-03 21:54:08 +0100 |
commit | fe7c3003741cd5221e076235263df2b3d2fa9202 (patch) | |
tree | c2fa880c62c4454e4f99d8cf37c70362733edd70 /tests/unit/menu | |
parent | 5494bc9b2e404b2fe6359e7a9f06f2196dbb2940 (diff) | |
download | jquery-ui-fe7c3003741cd5221e076235263df2b3d2fa9202.tar.gz jquery-ui-fe7c3003741cd5221e076235263df2b3d2fa9202.zip |
Menu: Remove click binding that was supposed to prevent default on anchor clicks on a disabled menu. Not relevant anymore since we removed the anchors. Partial fix for #8802 - Dev: Track down uses of .bind() inside widgets
Diffstat (limited to 'tests/unit/menu')
-rw-r--r-- | tests/unit/menu/menu_events.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/unit/menu/menu_events.js b/tests/unit/menu/menu_events.js index 3f834fd66..8fa77ab95 100644 --- a/tests/unit/menu/menu_events.js +++ b/tests/unit/menu/menu_events.js @@ -629,27 +629,6 @@ asyncTest( "handle keyboard navigation with spelling of menu items", function() element[ 0 ].focus(); }); -test( "ensure default is prevented when clicking on anchors in disabled menus ", function() { - expect( 1 ); - var element = $( "#menu1" ).menu(); - element.bind( "click.menu", function(event) { - if ( !event.isDefaultPrevented() ) { - log(); - } - }); - log( "click", true ); - click( element, "1" ); - log( "afterclick,disable" ); - element.menu( "option", "disabled", true ); - click( element, "2" ); - click( element, "3" ); - click( element, "1" ); - log( "enable" ); - element.menu( "option", "disabled", false ); - click( element, "3" ); - equal( logOutput(), "click,1,afterclick,disable,enable,3", "Click order not valid." ); -}); - test( "#9469: Stopping propagation in a select event should not suppress subsequent select events.", function() { expect( 1 ); var element = $( "#menu1" ).menu({ |