Skip to content
Permalink
Browse files

Selectmenu Tests: use simulate instead of trigger

  • Loading branch information...
fnagel committed Apr 29, 2013
1 parent 8b6c81e commit 1fa8c2000994cabb315aff3a0941cbbfb1f562f8
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/unit/selectmenu/selectmenu_events.js
@@ -23,7 +23,7 @@ test( "change", function () {
value = this.element.find( "option" ).first().text();

button.simulate( "focus" ).simulate( "click" );
menu.find( "a" ).first().simulate( "mouseover" ).trigger( "click" );
menu.find( "a" ).first().simulate( "mouseover" ).simulate( "click" );
});


@@ -103,7 +103,7 @@ test( "select", function () {
menu = this.element.selectmenu( "menuWidget" ).parent();

button.simulate( "focus" ).simulate( "click" );
menu.find( "a" ).first().simulate( "mouseover" ).trigger( "click" );
menu.find( "a" ).first().simulate( "mouseover" ).simulate( "click" );
});

})(jQuery);

0 comments on commit 1fa8c20

Please sign in to comment.
You can’t perform that action at this time.