From e242868f563fa244c6cbe04a421cb1734a322024 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 31 Aug 2012 15:41:45 -0400 Subject: Tooltip: Allow strings for content option. --- tests/unit/tooltip/tooltip_options.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/unit/tooltip/tooltip_options.js b/tests/unit/tooltip/tooltip_options.js index 561f3ffe5..db193e8fa 100644 --- a/tests/unit/tooltip/tooltip_options.js +++ b/tests/unit/tooltip/tooltip_options.js @@ -65,6 +65,16 @@ test( "content: change while open", function() { element.tooltip( "open" ); }); +test( "content: string", function() { + expect( 1 ); + var element = $( "#tooltipped1" ).tooltip({ + content: "just a string", + open: function( event, ui ) { + equal( ui.tooltip.text(), "just a string" ); + } + }).tooltip( "open" ); +}); + test( "items", function() { expect( 2 ); var event, -- cgit v1.2.3