]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner tests: Removed IE 6 hack in destroy test.
authorScott González <scott.gonzalez@gmail.com>
Sun, 7 Aug 2011 17:05:04 +0000 (13:05 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sun, 7 Aug 2011 17:05:04 +0000 (13:05 -0400)
tests/unit/spinner/spinner_core.js
tests/unit/spinner/spinner_methods.js

index dc8a44d88eef5ef891bce5ba998ac8672c7c41a3..d1acd7a9b145e471a6228f36174726a326d2d6ca 100644 (file)
@@ -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({
index e12432a76926570ec9f3876349bfa81ad48ac836..29494f9cc0f6f4724fb243d263e8e2e3907420ef 100644 (file)
@@ -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 }),