diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-08-13 19:05:04 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-08-13 19:05:04 -0400 |
commit | 1aea0ff4b83d3bc3242767d4c5a87983b4b47839 (patch) | |
tree | 2c8eb9c75d6b4fc44442a7dc1603cba11bad82da /tests/unit/spinner/spinner_events.js | |
parent | 257021b1af4f5414fb71ada695d86bd51bb5dc04 (diff) | |
download | jquery-ui-1aea0ff4b83d3bc3242767d4c5a87983b4b47839.tar.gz jquery-ui-1aea0ff4b83d3bc3242767d4c5a87983b4b47839.zip |
Spinner: Removed value option. Don't change empty values to zero on init. Don't enforce min/max on blur.
Diffstat (limited to 'tests/unit/spinner/spinner_events.js')
-rw-r--r-- | tests/unit/spinner/spinner_events.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/spinner/spinner_events.js b/tests/unit/spinner/spinner_events.js index e9f5da1ce..e43ba3365 100644 --- a/tests/unit/spinner/spinner_events.js +++ b/tests/unit/spinner/spinner_events.js @@ -129,24 +129,28 @@ test( "change", function() { }); } + element.focus(); shouldChange( false, "key UP, before blur" ); spinner_simulateKeyDownUp( element, $.ui.keyCode.UP ); shouldChange( true, "blur after key UP" ); element.blur(); + element.focus(); shouldChange( false, "key DOWN, before blur" ); spinner_simulateKeyDownUp( element, $.ui.keyCode.DOWN ); shouldChange( true, "blur after key DOWN" ); element.blur(); + element.focus(); shouldChange( false, "key PAGE_UP, before blur" ); spinner_simulateKeyDownUp( element, $.ui.keyCode.PAGE_UP ); shouldChange( true, "blur after key PAGE_UP" ); element.blur(); + element.focus(); shouldChange( false, "key PAGE_DOWN, before blur" ); spinner_simulateKeyDownUp( element, $.ui.keyCode.PAGE_DOWN ); - shouldChange( true, "key PAGE_DOWN" ); + shouldChange( true, "blur after key PAGE_DOWN" ); element.blur(); shouldChange( false, "many keys, before blur" ); |