Spinner tests: Removed IE 6 hack in destroy test.

This commit is contained in:
Scott González 2011-08-07 13:05:04 -04:00
parent ca2211f748
commit b8976207f3
2 changed files with 7 additions and 11 deletions

View File

@ -2,17 +2,6 @@
module( "spinner: core" ); 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() { test( "keydown UP on input, increases value not greater than max", function() {
expect( 5 ); expect( 5 );
var element = $( "#spin" ).spinner({ var element = $( "#spin" ).spinner({

View File

@ -2,6 +2,13 @@
module( "spinner: methods" ); module( "spinner: methods" );
test( "destroy", function() {
expect( 1 );
domEqual( "#spin", function() {
$( "#spin" ).spinner().spinner( "destroy" );
});
});
test( "disable", function() { test( "disable", function() {
expect( 14 ); expect( 14 );
var element = $( "#spin" ).spinner({ value: 2 }), var element = $( "#spin" ).spinner({ value: 2 }),