mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
parent
20fae727d9
commit
3b99bf4cc8
@ -18,7 +18,7 @@ common.testWidget( "menu", {
|
|||||||
},
|
},
|
||||||
role: "menu",
|
role: "menu",
|
||||||
|
|
||||||
// callbacks
|
// Callbacks
|
||||||
blur: null,
|
blur: null,
|
||||||
create: null,
|
create: null,
|
||||||
focus: null,
|
focus: null,
|
||||||
|
@ -333,7 +333,7 @@ asyncTest( "handle keyboard navigation on menu without scroll and with submenus"
|
|||||||
element.simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } );
|
element.simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } );
|
||||||
equal( logOutput(), "keydown,4", "Keydown LEFT (close submenu)" );
|
equal( logOutput(), "keydown,4", "Keydown LEFT (close submenu)" );
|
||||||
|
|
||||||
// re-open submenu
|
// Re-open submenu
|
||||||
element.simulate( "keydown", { keyCode: $.ui.keyCode.RIGHT } );
|
element.simulate( "keydown", { keyCode: $.ui.keyCode.RIGHT } );
|
||||||
setTimeout( menukeyboard3 );
|
setTimeout( menukeyboard3 );
|
||||||
}
|
}
|
||||||
@ -525,7 +525,7 @@ asyncTest( "handle keyboard navigation on menu with scroll and with submenus", f
|
|||||||
element.simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } );
|
element.simulate( "keydown", { keyCode: $.ui.keyCode.LEFT } );
|
||||||
equal( logOutput(), "keydown,1", "Keydown LEFT (close submenu)" );
|
equal( logOutput(), "keydown,1", "Keydown LEFT (close submenu)" );
|
||||||
|
|
||||||
// re-open submenu
|
// Re-open submenu
|
||||||
element.simulate( "keydown", { keyCode: $.ui.keyCode.RIGHT } );
|
element.simulate( "keydown", { keyCode: $.ui.keyCode.RIGHT } );
|
||||||
setTimeout( menukeyboard3, 50 );
|
setTimeout( menukeyboard3, 50 );
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ return $.widget( "ui.menu", {
|
|||||||
},
|
},
|
||||||
role: "menu",
|
role: "menu",
|
||||||
|
|
||||||
// callbacks
|
// Callbacks
|
||||||
blur: null,
|
blur: null,
|
||||||
focus: null,
|
focus: null,
|
||||||
select: null
|
select: null
|
||||||
|
Loading…
Reference in New Issue
Block a user