Slider: Some more test suite improvements

This commit is contained in:
jzaefferer 2010-10-26 12:21:22 +02:00
parent 2df094527e
commit 134205840b
2 changed files with 3 additions and 7 deletions

View File

@ -13,14 +13,10 @@ var simulateKeyDownUp = function(el, kCode, shift) {
module("spinner: core");
test("destroy", function() {
// cheat a bit to get IE6 to pass
$("#spin").val(0);
var beforeHtml = $("#spin").parent().html();
var afterHtml = $("#spin").spinner().spinner("destroy").parent().html();
// Opera 9 outputs role="" instead of removing the attribute like everyone else
/*
if ($.browser.opera) {
afterHtml = afterHtml.replace(/ role=""/g, "");
}
*/
equal( afterHtml, beforeHtml, "before/after html should be the same" );
});

View File

@ -48,7 +48,7 @@ test("stop", function() {
});
test("change", function() {
var start = spin = stop = change = 0;
var change = 0;
var el = $("#spin").spinner({
change: function(){