jquery-ui/tests/unit/spinner/spinner_test_helpers.js
2015-04-09 09:26:27 -04:00

12 lines
258 B
JavaScript

define( function() {
return {
simulateKeyDownUp: function( element, keyCode, shift ) {
element
.simulate( "keydown", { keyCode: keyCode, shiftKey: shift || false } )
.simulate( "keyup", { keyCode: keyCode, shiftKey: shift || false } );
}
};
} );