aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/deprecated.js
blob: bce1a6c6ab54d6eaa677224393d3a73762d06d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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" );
} );

} );