diff options
author | dominiquevincent <dominique.vincent@toitl.com> | 2010-05-06 17:10:52 +0200 |
---|---|---|
committer | dominiquevincent <dominique.vincent@toitl.com> | 2010-05-06 17:10:52 +0200 |
commit | c821aa680c617412cc9e9c74a4030722f6302379 (patch) | |
tree | bfacabec19361ccf8f8cbbd7efb350b500d10237 /tests/unit/menu/menu_methods.js | |
parent | c3d32496565bb29ba5e0dc3eaf5f47850af2a6d4 (diff) | |
download | jquery-ui-c821aa680c617412cc9e9c74a4030722f6302379.tar.gz jquery-ui-c821aa680c617412cc9e9c74a4030722f6302379.zip |
Menu:the first set of unit test files.
Signed-off-by: dominiquevincent <dominique.vincent@toitl.com>
Diffstat (limited to 'tests/unit/menu/menu_methods.js')
-rw-r--r-- | tests/unit/menu/menu_methods.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/unit/menu/menu_methods.js b/tests/unit/menu/menu_methods.js new file mode 100644 index 000000000..b6ebaf215 --- /dev/null +++ b/tests/unit/menu/menu_methods.js @@ -0,0 +1,19 @@ +/* + * menu_methods.js + */ +(function($) { + +module("menu: methods"); + +test("destroy", function() { + var beforeHtml = $("#menu1").find("div").css("font-style", "normal").end().parent().html(); + var afterHtml = $("#menu1").menu().menu("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); |