Skip to content

Commit cdbce0c

Browse files
committed
Menu: Remove core event/alias and deprecated module dependencies
1 parent 3064793 commit cdbce0c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/unit/menu/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ asyncTest( "#9044: Autofocus issue with dialog opened from menu widget", functio
4747

4848
$( "<input>", { id: "test9044" } ).appendTo( "body" );
4949

50-
$( "#testID1" ).bind( "click", function() {
51-
$( "#test9044" ).focus();
50+
$( "#testID1" ).on( "click", function() {
51+
$( "#test9044" ).trigger( "focus" );
5252
});
5353

5454
testHelper.click( element, "3" );

tests/unit/menu/events.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ asyncTest( "handle blur", function() {
6262

6363
click( element, "1" );
6464
setTimeout(function() {
65-
element.blur();
65+
element.trigger( "blur" );
6666
setTimeout(function() {
6767
start();
6868
}, 350 );
@@ -303,7 +303,7 @@ asyncTest( "handle keyboard navigation on menu without scroll and with submenus"
303303
equal( logOutput(), "keydown,1,2", "Keydown DOWN" );
304304
setTimeout( menukeyboard1 );
305305
});
306-
element.focus();
306+
element.trigger( "focus" );
307307

308308
function menukeyboard1() {
309309
log( "keydown", true );
@@ -498,7 +498,7 @@ asyncTest( "handle keyboard navigation on menu with scroll and with submenus", f
498498
equal( logOutput(), "keydown,1,2", "Keydown DOWN" );
499499
setTimeout( menukeyboard1 );
500500
});
501-
element.focus();
501+
element.trigger( "focus" );
502502

503503
function menukeyboard1() {
504504
log( "keydown", true );
@@ -593,7 +593,7 @@ asyncTest( "handle keyboard navigation and mouse click on menu with disabled ite
593593
equal( logOutput(), "keydown,1", "Keydown focus but not select disabled item" );
594594
setTimeout( menukeyboard1, 50 );
595595
});
596-
element.focus();
596+
element.trigger( "focus" );
597597

598598
function menukeyboard1() {
599599
log( "keydown", true );
@@ -645,7 +645,7 @@ asyncTest( "handle keyboard navigation and mouse click on menu with dividers and
645645
equal( logOutput(), "keydown,2,Ada", "Keydown skips initial group label" );
646646
setTimeout( menukeyboard1, 50 );
647647
});
648-
element.focus();
648+
element.trigger( "focus" );
649649

650650
function menukeyboard1() {
651651
log( "keydown", true );

0 commit comments

Comments
 (0)