jquery-ui/tests/unit/button/button_methods.js
Scott González af1b4d859d Tests: Lint.
2012-04-19 10:50:09 -04:00

20 lines
429 B
JavaScript

/*
* button_methods.js
*/
(function($) {
module("button: methods");
test("destroy", function() {
var beforeHtml = $("#button").parent().html(),
afterHtml = $("#button").button().button("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 );
});
})(jQuery);