From bdd815e8dcdeace8be6dd8005ef443bc5ea20548 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Tue, 26 Oct 2010 15:36:43 +0200 Subject: Tooltip: Demo and tests update --- tests/unit/tooltip/tooltip_options.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/unit/tooltip') 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 $("
").html("customstring"); + } + }).tooltip("open"); + same( $(".ui-tooltip").text(), "customstring" ); +}); + test("content: callback string", function() { stop(); $("#tooltipped1").tooltip({ -- cgit v1.2.3