From 8961508128b01331942630d7f47b0428608c5b01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 10 Oct 2011 14:01:12 -0400 Subject: [PATCH] Spinner: Simulate keyup at the end of incremental tests to stop the repeat timer. --- tests/unit/spinner/spinner_options.js | 3 +++ 1 file changed, 3 insertions(+) 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() { -- 2.39.5