summaryrefslogtreecommitdiff
path: root/src/main/webapp/jquery-ui-1.9pre/tests/unit/spinner/spinner_test_helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/jquery-ui-1.9pre/tests/unit/spinner/spinner_test_helpers.js')
-rw-r--r--src/main/webapp/jquery-ui-1.9pre/tests/unit/spinner/spinner_test_helpers.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/webapp/jquery-ui-1.9pre/tests/unit/spinner/spinner_test_helpers.js b/src/main/webapp/jquery-ui-1.9pre/tests/unit/spinner/spinner_test_helpers.js
new file mode 100644
index 0000000..af555db
--- /dev/null
+++ b/src/main/webapp/jquery-ui-1.9pre/tests/unit/spinner/spinner_test_helpers.js
@@ -0,0 +1,5 @@
+var spinner_simulateKeyDownUp = function( element, keyCode, shift ) {
+ element
+ .simulate( "keydown", { keyCode: keyCode, shiftKey: shift || false } )
+ .simulate( "keyup", { keyCode: keyCode, shiftKey: shift || false } );
+};