diff options
author | Felix Nagel <info@felixnagel.com> | 2012-01-22 15:44:23 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-01-22 15:44:23 +0100 |
commit | 50c308339c44f17b3a5c9dbc0e759f8b55a1297a (patch) | |
tree | aa4c61178cce985418ed47a61eeef22415997da3 | |
parent | 759e47a6573595dd75b426126448132b50a86aa9 (diff) | |
download | jquery-ui-50c308339c44f17b3a5c9dbc0e759f8b55a1297a.tar.gz jquery-ui-50c308339c44f17b3a5c9dbc0e759f8b55a1297a.zip |
Selectmenu: fixed unit tests in IE
-rw-r--r-- | tests/unit/selectmenu/selectmenu_core.js | 2 | ||||
-rw-r--r-- | tests/unit/selectmenu/selectmenu_events.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/selectmenu/selectmenu_core.js b/tests/unit/selectmenu/selectmenu_core.js index f06f65c99..c8feedee4 100644 --- a/tests/unit/selectmenu/selectmenu_core.js +++ b/tests/unit/selectmenu/selectmenu_core.js @@ -58,7 +58,7 @@ $.each([ equals( button.text(), selected.next("option").text(), "after keydown button text" ); link.simulate( "click" ); - menu.find("a").last().simulate( "mouseover" ).simulate( "click" ); + menu.find("a").last().simulate( "mouseover" ).trigger( "click" ); equals( element.find("option:selected").val(), element.find("option").last().val(), "after click original select state" ); equals( button.text(), element.find("option").last().text(), "after click button text" ); }); diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js index 4aad80c42..92dc6f01a 100644 --- a/tests/unit/selectmenu/selectmenu_events.js +++ b/tests/unit/selectmenu/selectmenu_events.js @@ -25,7 +25,7 @@ test("change", function () { value = this.element.find("option").first().text(); button.find("a").simulate( "click" ); - menu.find("a").first().simulate( "mouseover" ).simulate( "click" ); + menu.find("a").first().simulate( "mouseover" ).trigger( "click" ); }); @@ -102,7 +102,7 @@ test("select", function () { menu = widget.filter(".ui-selectmenu-menu"); button.find("a").simulate( "click" ); - menu.find("a").first().simulate( "mouseover" ).simulate("click"); + menu.find("a").first().simulate( "mouseover" ).trigger("click"); }); })(jQuery); |