Menu: Remove core event/alias and deprecated module dependencies

This commit is contained in:
Alexander Schmitz 2015-05-13 22:10:34 -04:00
parent 3064793d5b
commit cdbce0c724
2 changed files with 7 additions and 7 deletions

View File

@ -47,8 +47,8 @@ asyncTest( "#9044: Autofocus issue with dialog opened from menu widget", functio
$( "<input>", { id: "test9044" } ).appendTo( "body" ); $( "<input>", { id: "test9044" } ).appendTo( "body" );
$( "#testID1" ).bind( "click", function() { $( "#testID1" ).on( "click", function() {
$( "#test9044" ).focus(); $( "#test9044" ).trigger( "focus" );
}); });
testHelper.click( element, "3" ); testHelper.click( element, "3" );

View File

@ -62,7 +62,7 @@ asyncTest( "handle blur", function() {
click( element, "1" ); click( element, "1" );
setTimeout(function() { setTimeout(function() {
element.blur(); element.trigger( "blur" );
setTimeout(function() { setTimeout(function() {
start(); start();
}, 350 ); }, 350 );
@ -303,7 +303,7 @@ asyncTest( "handle keyboard navigation on menu without scroll and with submenus"
equal( logOutput(), "keydown,1,2", "Keydown DOWN" ); equal( logOutput(), "keydown,1,2", "Keydown DOWN" );
setTimeout( menukeyboard1 ); setTimeout( menukeyboard1 );
}); });
element.focus(); element.trigger( "focus" );
function menukeyboard1() { function menukeyboard1() {
log( "keydown", true ); log( "keydown", true );
@ -498,7 +498,7 @@ asyncTest( "handle keyboard navigation on menu with scroll and with submenus", f
equal( logOutput(), "keydown,1,2", "Keydown DOWN" ); equal( logOutput(), "keydown,1,2", "Keydown DOWN" );
setTimeout( menukeyboard1 ); setTimeout( menukeyboard1 );
}); });
element.focus(); element.trigger( "focus" );
function menukeyboard1() { function menukeyboard1() {
log( "keydown", true ); log( "keydown", true );
@ -593,7 +593,7 @@ asyncTest( "handle keyboard navigation and mouse click on menu with disabled ite
equal( logOutput(), "keydown,1", "Keydown focus but not select disabled item" ); equal( logOutput(), "keydown,1", "Keydown focus but not select disabled item" );
setTimeout( menukeyboard1, 50 ); setTimeout( menukeyboard1, 50 );
}); });
element.focus(); element.trigger( "focus" );
function menukeyboard1() { function menukeyboard1() {
log( "keydown", true ); log( "keydown", true );
@ -645,7 +645,7 @@ asyncTest( "handle keyboard navigation and mouse click on menu with dividers and
equal( logOutput(), "keydown,2,Ada", "Keydown skips initial group label" ); equal( logOutput(), "keydown,2,Ada", "Keydown skips initial group label" );
setTimeout( menukeyboard1, 50 ); setTimeout( menukeyboard1, 50 );
}); });
element.focus(); element.trigger( "focus" );
function menukeyboard1() { function menukeyboard1() {
log( "keydown", true ); log( "keydown", true );