aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-10-26 15:36:43 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-10-26 15:36:43 +0200
commitbdd815e8dcdeace8be6dd8005ef443bc5ea20548 (patch)
treeafe8e4a1da8ca9762df45d4c84562b7b3458092f /tests/unit/tooltip
parent4d6770fe13b6fa73d36b3f72d04585dc744e7961 (diff)
downloadjquery-ui-bdd815e8dcdeace8be6dd8005ef443bc5ea20548.tar.gz
jquery-ui-bdd815e8dcdeace8be6dd8005ef443bc5ea20548.zip
Tooltip: Demo and tests update
Diffstat (limited to 'tests/unit/tooltip')
-rw-r--r--tests/unit/tooltip/tooltip_options.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit/tooltip/tooltip_options.js b/tests/unit/tooltip/tooltip_options.js
index 41873ab5b..99d582489 100644
--- a/tests/unit/tooltip/tooltip_options.js
+++ b/tests/unit/tooltip/tooltip_options.js
@@ -23,6 +23,15 @@ test("content: return string", function() {
same( $(".ui-tooltip").text(), "customstring" );
});
+test("content: return jQuery", function() {
+ $("#tooltipped1").tooltip({
+ content: function() {
+ return $("<div></div>").html("cu<b>s</b>tomstring");
+ }
+ }).tooltip("open");
+ same( $(".ui-tooltip").text(), "customstring" );
+});
+
test("content: callback string", function() {
stop();
$("#tooltipped1").tooltip({