aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/autocomplete_methods.js
diff options
context:
space:
mode:
authormaggiewachs <maggie@filamentgroup.com>2010-04-16 14:24:49 -0400
committermaggiewachs <maggie@filamentgroup.com>2010-04-16 14:24:49 -0400
commit970ed9a67a533ab44b184babf52100dfbcfa7c96 (patch)
tree423aa90362d991c62af87ec7b1a094706f46cdcd /tests/unit/autocomplete/autocomplete_methods.js
parent4ffe07457cb21332e9a33c319c1f1f610e532a27 (diff)
parentd1033cc2b79067f31767bfe0bb1f9a761dae9b3f (diff)
downloadjquery-ui-970ed9a67a533ab44b184babf52100dfbcfa7c96.tar.gz
jquery-ui-970ed9a67a533ab44b184babf52100dfbcfa7c96.zip
Merge branch 'master' of github.com:jquery/jquery-ui
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_methods.js')
-rw-r--r--tests/unit/autocomplete/autocomplete_methods.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/autocomplete/autocomplete_methods.js b/tests/unit/autocomplete/autocomplete_methods.js
index 5c20a6c95..05a7d6e14 100644
--- a/tests/unit/autocomplete/autocomplete_methods.js
+++ b/tests/unit/autocomplete/autocomplete_methods.js
@@ -13,8 +13,11 @@ module("autocomplete: methods", {
test("destroy", function() {
var beforeHtml = $("#autocomplete").parent().html();
var afterHtml = $("#autocomplete").autocomplete().autocomplete("destroy").parent().html();
- // TODO can't use same, as that would insert the markup unescaped into the test results, screwing up other tests
- ok( beforeHtml == afterHtml );
+ // 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" );
})
var data = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl"];