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

8 lines
245 B
JavaScript
Raw Normal View History

TestHelpers.spinner = {
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
};