Skip to content
Permalink
Browse files

Spinner tests: Removed IE 6 hack in destroy test.

  • Loading branch information
scottgonzalez committed Aug 7, 2011
1 parent ca2211f commit b8976207f323054b49781b94e170d2e951e0c211
Showing with 7 additions and 11 deletions.
  1. +0 −11 tests/unit/spinner/spinner_core.js
  2. +7 −0 tests/unit/spinner/spinner_methods.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({
@@ -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 }),

0 comments on commit b897620

Please sign in to comment.
You can’t perform that action at this time.