Permalink
Browse files

Selectmenu: fixed unit tests in IE

  • Loading branch information...
1 parent 759e47a commit 50c308339c44f17b3a5c9dbc0e759f8b55a1297a @fnagel fnagel committed Jan 22, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 tests/unit/selectmenu/selectmenu_core.js
  2. +2 −2 tests/unit/selectmenu/selectmenu_events.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" );
});
@@ -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);

0 comments on commit 50c3083

Please sign in to comment.