aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2017-04-18 17:37:15 -0400
committerScott González <scott.gonzalez@gmail.com>2017-04-25 06:33:00 -0400
commit0d25a36eecb9e5598596208e4852b3c3fdbf5510 (patch)
tree5879015fc17c92df689de431325ff661a61b247d /tests/unit
parentb3c0a7f71d0b351755b97858ad47de4e9a373606 (diff)
downloadjquery-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.js4
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();
}
} );