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