diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2014-12-03 11:30:22 -0500 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-03-11 16:05:33 -0400 |
commit | 9d71547394f9464e5af1f0c77e56917d0ba5abb6 (patch) | |
tree | c26d5d586c47ecfdf40d07acb22cf30f8706a9e8 /tests/unit/tooltip/tooltip_deprecated.js | |
parent | aaddfbfa8b3bdb0374540d7dd1e13a708bdb00aa (diff) | |
download | jquery-ui-9d71547394f9464e5af1f0c77e56917d0ba5abb6.tar.gz jquery-ui-9d71547394f9464e5af1f0c77e56917d0ba5abb6.zip |
Tooltip: Add classes option
Ref #7053
Ref gh-1411
Diffstat (limited to 'tests/unit/tooltip/tooltip_deprecated.js')
-rw-r--r-- | tests/unit/tooltip/tooltip_deprecated.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/tooltip/tooltip_deprecated.js b/tests/unit/tooltip/tooltip_deprecated.js new file mode 100644 index 000000000..426f583ec --- /dev/null +++ b/tests/unit/tooltip/tooltip_deprecated.js @@ -0,0 +1,13 @@ +(function( $ ) { + +module( "tooltip: (deprecated) options" ); + +test( "tooltipClass", function() { + expect( 1 ); + var element = $( "#tooltipped1" ).tooltip({ + tooltipClass: "custom" + }).tooltip( "open" ); + ok( $( "#" + element.data( "ui-tooltip-id" ) ).hasClass( "custom" ) ); +}); + +}( jQuery ) ); |