diff options
author | Scott González <scott.gonzalez@gmail.com> | 2017-04-18 17:37:15 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2017-04-25 06:33:00 -0400 |
commit | 0d25a36eecb9e5598596208e4852b3c3fdbf5510 (patch) | |
tree | 5879015fc17c92df689de431325ff661a61b247d /tests/unit | |
parent | b3c0a7f71d0b351755b97858ad47de4e9a373606 (diff) | |
download | jquery-ui-0d25a36eecb9e5598596208e4852b3c3fdbf5510.tar.gz jquery-ui-0d25a36eecb9e5598596208e4852b3c3fdbf5510.zip |
Menu: Close menus immediately on selection or click outside
Fixes #15034
Closes gh-1807
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/menu/events.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/menu/events.js b/tests/unit/menu/events.js index a8ccb0282..90507bddc 100644 --- a/tests/unit/menu/events.js +++ b/tests/unit/menu/events.js @@ -670,7 +670,9 @@ QUnit.test( "handle keyboard navigation and mouse click on menu with dividers an element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); - assert.equal( logOutput(), "keydown,3,4,7", "Keydown focus skips divider and group label" ); + element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); + element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); + assert.equal( logOutput(), "keydown,1,2,3,4,7", "Keydown focus skips divider and group label" ); ready(); } } ); |