diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-08-07 13:05:04 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-08-07 13:05:04 -0400 |
commit | b8976207f323054b49781b94e170d2e951e0c211 (patch) | |
tree | abfd5fde84cc48315d82b14d9a00f1f648b21cce /tests/unit | |
parent | ca2211f74851a066829464e78f50c90b49eac2dd (diff) | |
download | jquery-ui-b8976207f323054b49781b94e170d2e951e0c211.tar.gz jquery-ui-b8976207f323054b49781b94e170d2e951e0c211.zip |
Spinner tests: Removed IE 6 hack in destroy test.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/spinner/spinner_core.js | 11 | ||||
-rw-r--r-- | tests/unit/spinner/spinner_methods.js | 7 |
2 files changed, 7 insertions, 11 deletions
diff --git a/tests/unit/spinner/spinner_core.js b/tests/unit/spinner/spinner_core.js index dc8a44d88..d1acd7a9b 100644 --- a/tests/unit/spinner/spinner_core.js +++ b/tests/unit/spinner/spinner_core.js @@ -2,17 +2,6 @@ module( "spinner: core" ); -// TODO: move to spinner_methods -test( "destroy", function() { - expect( 1 ); - // TODO: is this cheat still needed? - // cheat a bit to get IE6 to pass - $( "#spin" ).val( 0 ); - domEqual( "#spin", function() { - $( "#spin" ).spinner().spinner( "destroy" ); - }); -}); - test( "keydown UP on input, increases value not greater than max", function() { expect( 5 ); var element = $( "#spin" ).spinner({ diff --git a/tests/unit/spinner/spinner_methods.js b/tests/unit/spinner/spinner_methods.js index e12432a76..29494f9cc 100644 --- a/tests/unit/spinner/spinner_methods.js +++ b/tests/unit/spinner/spinner_methods.js @@ -2,6 +2,13 @@ module( "spinner: methods" ); +test( "destroy", function() { + expect( 1 ); + domEqual( "#spin", function() { + $( "#spin" ).spinner().spinner( "destroy" ); + }); +}); + test( "disable", function() { expect( 14 ); var element = $( "#spin" ).spinner({ value: 2 }), |