diff options
Diffstat (limited to 'src/main/webapp/jquery-ui-1.9pre/tests/unit/button/button_methods.js')
-rw-r--r-- | src/main/webapp/jquery-ui-1.9pre/tests/unit/button/button_methods.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/webapp/jquery-ui-1.9pre/tests/unit/button/button_methods.js b/src/main/webapp/jquery-ui-1.9pre/tests/unit/button/button_methods.js new file mode 100644 index 0000000..a83a73b --- /dev/null +++ b/src/main/webapp/jquery-ui-1.9pre/tests/unit/button/button_methods.js @@ -0,0 +1,19 @@ +/* + * button_methods.js + */ +(function($) { + + +module("button: methods"); + +test("destroy", function() { + var beforeHtml = $("#button").parent().html(); + var 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); |