diff options
author | Felix Nagel <info@felixnagel.com> | 2013-07-01 22:04:30 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-07-01 22:04:30 +0200 |
commit | 2c9f5a8c01c25dd755fb60e9a80a046b9d53160e (patch) | |
tree | f9dab0da71110fae5803d6b067276e153a307cdb /tests/unit/selectmenu/selectmenu_core.js | |
parent | b735152ae1b56276aab35d3a241fbbf5ee5ead8d (diff) | |
download | jquery-ui-2c9f5a8c01c25dd755fb60e9a80a046b9d53160e.tar.gz jquery-ui-2c9f5a8c01c25dd755fb60e9a80a046b9d53160e.zip |
Selectmenu Tests: use trigger instead of simulate for click events in order to make tests work in IE/ and IE8
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_core.js')
-rw-r--r-- | tests/unit/selectmenu/selectmenu_core.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/selectmenu/selectmenu_core.js b/tests/unit/selectmenu/selectmenu_core.js index c4f43b681..e6cbcbeed 100644 --- a/tests/unit/selectmenu/selectmenu_core.js +++ b/tests/unit/selectmenu/selectmenu_core.js @@ -100,7 +100,7 @@ $.each([ setTimeout(function() { links = menu.find("li.ui-menu-item a"); - button.simulate( "click" ); + button.trigger( "click" ); menu.find( "a" ).last().simulate( "mouseover" ).trigger( "click" ); equal( menu.attr( "aria-activedescendant" ), @@ -137,10 +137,10 @@ $.each([ setTimeout(function() { links = menu.find( "li.ui-menu-item a" ); // open menu and click first item - button.simulate( "click" ); + button.trigger( "click" ); links.first().simulate( "mouseover" ).trigger( "click" ); // open menu again and hover item - button.simulate( "click" ); + button.trigger( "click" ); links.eq( 3 ).simulate( "mouseover" ); // close and use keyboard control on button button.simulate( "keydown", { keyCode: $.ui.keyCode.ESCAPE } ); |