diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-10-10 14:01:12 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-10-10 14:01:12 -0400 |
commit | 8961508128b01331942630d7f47b0428608c5b01 (patch) | |
tree | 933490953c2a32b7b814cfef16e621225987ccc3 | |
parent | 647bab506e288658c8a28dab1083c657ad61951e (diff) | |
download | jquery-ui-8961508128b01331942630d7f47b0428608c5b01.tar.gz jquery-ui-8961508128b01331942630d7f47b0428608c5b01.zip |
Spinner: Simulate keyup at the end of incremental tests to stop the repeat timer.
-rw-r--r-- | tests/unit/spinner/spinner_options.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/spinner/spinner_options.js b/tests/unit/spinner/spinner_options.js index 8be57c785..d954c8b9a 100644 --- a/tests/unit/spinner/spinner_options.js +++ b/tests/unit/spinner/spinner_options.js @@ -20,6 +20,7 @@ test( "incremental, false", function() { for ( i = 0; i < 100; i++ ) { element.simulate( "keydown", { keyCode: $.ui.keyCode.UP } ); } + element.simulate( "keyup", { keyCode: $.ui.keyCode.UP } ); }); test( "incremental, true", function() { @@ -47,6 +48,7 @@ test( "incremental, true", function() { for ( i = 0; i < 100; i++ ) { element.simulate( "keydown", { keyCode: $.ui.keyCode.UP } ); } + element.simulate( "keyup", { keyCode: $.ui.keyCode.UP } ); }); test( "incremental, function", function() { @@ -67,6 +69,7 @@ test( "incremental, function", function() { for ( i = 0; i < 100; i++ ) { element.simulate( "keydown", { keyCode: $.ui.keyCode.UP } ); } + element.simulate( "keyup", { keyCode: $.ui.keyCode.UP } ); }); test( "numberFormat, number", function() { |