jquery-ui/tests/unit/tooltip/deprecated.js

17 lines
346 B
JavaScript
Raw Normal View History

define( [
"jquery",
"ui/widgets/tooltip"
], function( $ ) {
module( "tooltip: (deprecated) options" );
test( "tooltipClass", function( assert ) {
expect( 1 );
2015-08-24 12:50:46 +00:00
var element = $( "#tooltipped1" ).tooltip( {
tooltipClass: "custom"
2015-08-24 12:50:46 +00:00
} ).tooltip( "open" );
assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" );
2015-08-24 12:50:46 +00:00
} );
} );