Skip to content
Permalink
Browse files

Spinner: Simulate keyup at the end of incremental tests to stop the r…

…epeat timer.
  • Loading branch information...
scottgonzalez committed Oct 10, 2011
1 parent 647bab5 commit 8961508128b01331942630d7f47b0428608c5b01
Showing with 3 additions and 0 deletions.
  1. +3 −0 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() {

0 comments on commit 8961508

Please sign in to comment.
You can’t perform that action at this time.