diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-09-14 08:54:29 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-09-14 08:55:22 -0400 |
commit | 42337dd959c1e302c5656d5b25ceb42e99df6215 (patch) | |
tree | f5b7ec15adfe201190af879d34f1eefea9e79cf3 /tests/unit/spinner/spinner_options.js | |
parent | cedac75bccbfd8eb2b0301fd40fc31a36a9296b1 (diff) | |
download | jquery-ui-42337dd959c1e302c5656d5b25ceb42e99df6215.tar.gz jquery-ui-42337dd959c1e302c5656d5b25ceb42e99df6215.zip |
Spinner: Fix step mismatches whenever stepping, paging or using the value setter.
Thanks Nate Ferrero
Diffstat (limited to 'tests/unit/spinner/spinner_options.js')
-rw-r--r-- | tests/unit/spinner/spinner_options.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/spinner/spinner_options.js b/tests/unit/spinner/spinner_options.js index 48bdf96a9..2b557cb69 100644 --- a/tests/unit/spinner/spinner_options.js +++ b/tests/unit/spinner/spinner_options.js @@ -123,10 +123,11 @@ test( "step, 2", function() { equals( element.val(), "2", "stepUp" ); element.spinner( "value", "10.5" ); - equals( element.val(), "10.5", "value reset to 10.5" ); + equals( element.val(), "10", "value reset to 10" ); + element.val( "4.5" ); element.spinner( "stepUp" ); - equals( element.val(), "12.5", "stepUp" ); + equals( element.val(), "6", "stepUp" ); }); test( "step, 0.7", function() { |