aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-13 11:12:01 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-13 11:12:01 +0200
commit094ab5a5d9239c094b2f1af95669b9b0baaeee4a (patch)
treeb7920344cfef65588c5d173e08cf0d884b2caa54 /tests/unit/button
parent46b6a298cf785b4c7f33dbd28126a994cb3ce754 (diff)
downloadjquery-ui-094ab5a5d9239c094b2f1af95669b9b0baaeee4a.tar.gz
jquery-ui-094ab5a5d9239c094b2f1af95669b9b0baaeee4a.zip
Autocomplete and button unit tests: Same remove-role-attr fix as for accordion in destroy-method test
Diffstat (limited to 'tests/unit/button')
-rw-r--r--tests/unit/button/button_methods.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/button/button_methods.js b/tests/unit/button/button_methods.js
index 43c02d8cc..a83a73ba4 100644
--- a/tests/unit/button/button_methods.js
+++ b/tests/unit/button/button_methods.js
@@ -9,6 +9,10 @@ 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 );
});