aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/tooltip_deprecated.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2014-12-03 11:30:22 -0500
committerAlexander Schmitz <arschmitz@gmail.com>2015-03-11 16:05:33 -0400
commit9d71547394f9464e5af1f0c77e56917d0ba5abb6 (patch)
treec26d5d586c47ecfdf40d07acb22cf30f8706a9e8 /tests/unit/tooltip/tooltip_deprecated.js
parentaaddfbfa8b3bdb0374540d7dd1e13a708bdb00aa (diff)
downloadjquery-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.js13
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 ) );