aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/autocomplete_methods.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2010-02-02 14:04:50 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2010-02-02 14:04:50 +0000
commitdf391a998fe3af2fe950e7c07921f70c02e8d541 (patch)
tree7b958e3bbb46ae91ca43591305deb5269e71b7ff /tests/unit/autocomplete/autocomplete_methods.js
parentd549ba6d43072f65c56159a136ad4c077d859d36 (diff)
downloadjquery-ui-df391a998fe3af2fe950e7c07921f70c02e8d541.tar.gz
jquery-ui-df391a998fe3af2fe950e7c07921f70c02e8d541.zip
Fix for #5120 - create menu only once and return that element from the widget method, put ui-autocomplete class on menu
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_methods.js')
-rw-r--r--tests/unit/autocomplete/autocomplete_methods.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/autocomplete/autocomplete_methods.js b/tests/unit/autocomplete/autocomplete_methods.js
index 3ad93844c..44e74cb69 100644
--- a/tests/unit/autocomplete/autocomplete_methods.js
+++ b/tests/unit/autocomplete/autocomplete_methods.js
@@ -9,7 +9,8 @@ module("autocomplete: methods");
test("destroy", function() {
var beforeHtml = $("#autocomplete").parent().html();
var afterHtml = $("#autocomplete").autocomplete().autocomplete("destroy").parent().html();
- same( beforeHtml, afterHtml );
+ // TODO can't use same, as that would insert the markup unescaped into the test results, screwing up other tests
+ ok( beforeHtml == afterHtml );
})
var data = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "pearl"];