aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--tests/unit/autocomplete/autocomplete_methods.js4
-rw-r--r--tests/unit/button/button_methods.js4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/autocomplete/autocomplete_methods.js b/tests/unit/autocomplete/autocomplete_methods.js
index 76a600fe6..05a7d6e14 100644
--- a/tests/unit/autocomplete/autocomplete_methods.js
+++ b/tests/unit/autocomplete/autocomplete_methods.js
@@ -13,6 +13,10 @@ module("autocomplete: methods", {
test("destroy", function() {
var beforeHtml = $("#autocomplete").parent().html();
var afterHtml = $("#autocomplete").autocomplete().autocomplete("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, "before/after html should be the same" );
})
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 );
});