]> source.dussan.org Git - jquery-ui.git/commitdiff
Slider: Some more test suite improvements
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 26 Oct 2010 10:21:22 +0000 (12:21 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 26 Oct 2010 10:21:54 +0000 (12:21 +0200)
tests/unit/spinner/spinner_core.js
tests/unit/spinner/spinner_events.js

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