Skip to content

Commit

Permalink
Spinner: Simulate keyup at the end of incremental tests to stop the r…
Browse files Browse the repository at this point in the history
…epeat timer.
  • Loading branch information
scottgonzalez committed Oct 10, 2011
1 parent 647bab5 commit 8961508
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/spinner/spinner_options.js
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand All @@ -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() {
Expand Down

0 comments on commit 8961508

Please sign in to comment.