aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/deprecated.js
blob: b44b8dcd6ad3f811a5c2278acbec4403cf45b974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
define( [
	"qunit",
	"jquery",
	"./helper",
	"ui/widgets/tooltip"
], function( QUnit, $, testHelper ) {

var beforeAfterEach = testHelper.beforeAfterEach;

QUnit.module( "tooltip: (deprecated) options", beforeAfterEach() );

QUnit.test( "tooltipClass", function( assert ) {
	assert.expect( 1 );
	var element = $( "#tooltipped1" ).tooltip( {
		tooltipClass: "custom"
	} ).tooltip( "open" );
	assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" );
} );

} );