jquery-ui/tests/unit/spinner/helper.js
Scott González bde431bb44 Tests: Rename files
Ref gh-1528
2015-04-09 09:27:00 -04:00

15 lines
319 B
JavaScript

define( [
"jquery",
"lib/helper"
], function( $, helper ) {
return $.extend( helper, {
simulateKeyDownUp: function( element, keyCode, shift ) {
element
.simulate( "keydown", { keyCode: keyCode, shiftKey: shift || false } )
.simulate( "keyup", { keyCode: keyCode, shiftKey: shift || false } );
}
} );
} );