jquery-ui
Version:
A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.
18 lines (14 loc) • 382 B
JavaScript
define( [
"qunit",
"jquery",
"ui/widgets/tooltip"
], function( QUnit, $ ) {
QUnit.module( "tooltip: (deprecated) options" );
QUnit.test( "tooltipClass", function( assert ) {
assert.expect( 1 );
var element = $( "#tooltipped1" ).tooltip( {
tooltipClass: "custom"
} ).tooltip( "open" );
assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" );
} );
} );