From: jzaefferer Date: Tue, 26 Oct 2010 10:21:22 +0000 (+0200) Subject: Slider: Some more test suite improvements X-Git-Tag: 1.9m3~1^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=134205840bb89b2a473cc003769d9a9a515157db;p=jquery-ui.git Slider: Some more test suite improvements --- diff --git a/tests/unit/spinner/spinner_core.js b/tests/unit/spinner/spinner_core.js index 5a29b411a..6e3edafc8 100644 --- a/tests/unit/spinner/spinner_core.js +++ b/tests/unit/spinner/spinner_core.js @@ -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" ); }); diff --git a/tests/unit/spinner/spinner_events.js b/tests/unit/spinner/spinner_events.js index 1a006a3dc..c0771ca2f 100644 --- a/tests/unit/spinner/spinner_events.js +++ b/tests/unit/spinner/spinner_events.js @@ -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(){