jquery-ui/tests/unit/spinner/spinner_test_helpers.js

12 lines
258 B
JavaScript
Raw Normal View History

define( function() {
return {
simulateKeyDownUp: function( element, keyCode, shift ) {
element
.simulate( "keydown", { keyCode: keyCode, shiftKey: shift || false } )
.simulate( "keyup", { keyCode: keyCode, shiftKey: shift || false } );
}
2011-08-06 21:07:12 +00:00
};
} );