aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/tooltip_deprecated.js
diff options
context:
space:
mode:
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 ) );