diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-08-31 15:41:45 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-08-31 15:41:45 -0400 |
commit | e242868f563fa244c6cbe04a421cb1734a322024 (patch) | |
tree | aa8c95af0c946e34416f4de1b4a795953ce69ad7 /tests/unit/tooltip/tooltip_options.js | |
parent | dee7c8bd4493826e13b78b2d702947e6f4ad966e (diff) | |
download | jquery-ui-e242868f563fa244c6cbe04a421cb1734a322024.tar.gz jquery-ui-e242868f563fa244c6cbe04a421cb1734a322024.zip |
Tooltip: Allow strings for content option.
Diffstat (limited to 'tests/unit/tooltip/tooltip_options.js')
-rw-r--r-- | tests/unit/tooltip/tooltip_options.js | 10 |
1 files changed, 10 insertions, 0 deletions
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, |