]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Simulate keyup at the end of incremental tests to stop the repeat timer.
authorScott González <scott.gonzalez@gmail.com>
Mon, 10 Oct 2011 18:01:12 +0000 (14:01 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 10 Oct 2011 18:01:12 +0000 (14:01 -0400)
tests/unit/spinner/spinner_options.js

index 8be57c78517de43a2e1cb66a32a688b8a0714ec6..d954c8b9a2efc52d4fde7d47c0bcdbc8ceb3729e 100644 (file)
@@ -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() {