$( "<input>", { id: "test9044" } ).appendTo( "body" );
- $( "#testID1" ).bind( "click", function() {
- $( "#test9044" ).focus();
+ $( "#testID1" ).on( "click", function() {
+ $( "#test9044" ).trigger( "focus" );
});
testHelper.click( element, "3" );
click( element, "1" );
setTimeout(function() {
- element.blur();
+ element.trigger( "blur" );
setTimeout(function() {
start();
}, 350 );
equal( logOutput(), "keydown,1,2", "Keydown DOWN" );
setTimeout( menukeyboard1 );
});
- element.focus();
+ element.trigger( "focus" );
function menukeyboard1() {
log( "keydown", true );
equal( logOutput(), "keydown,1,2", "Keydown DOWN" );
setTimeout( menukeyboard1 );
});
- element.focus();
+ element.trigger( "focus" );
function menukeyboard1() {
log( "keydown", true );
equal( logOutput(), "keydown,1", "Keydown focus but not select disabled item" );
setTimeout( menukeyboard1, 50 );
});
- element.focus();
+ element.trigger( "focus" );
function menukeyboard1() {
log( "keydown", true );
equal( logOutput(), "keydown,2,Ada", "Keydown skips initial group label" );
setTimeout( menukeyboard1, 50 );
});
- element.focus();
+ element.trigger( "focus" );
function menukeyboard1() {
log( "keydown", true );