2015-04-07 00:28:55 +00:00
|
|
|
define( [
|
2016-04-06 13:59:12 +00:00
|
|
|
"qunit",
|
2015-04-07 00:28:55 +00:00
|
|
|
"jquery",
|
2015-07-15 02:12:14 +00:00
|
|
|
"ui/widgets/tooltip"
|
2016-04-06 13:59:12 +00:00
|
|
|
], function( QUnit, $ ) {
|
2014-12-03 16:30:22 +00:00
|
|
|
|
2016-04-06 13:59:12 +00:00
|
|
|
QUnit.module( "tooltip: (deprecated) options" );
|
2014-12-03 16:30:22 +00:00
|
|
|
|
2016-04-06 13:59:12 +00:00
|
|
|
QUnit.test( "tooltipClass", function( assert ) {
|
|
|
|
assert.expect( 1 );
|
2015-08-24 12:50:46 +00:00
|
|
|
var element = $( "#tooltipped1" ).tooltip( {
|
2014-12-03 16:30:22 +00:00
|
|
|
tooltipClass: "custom"
|
2015-08-24 12:50:46 +00:00
|
|
|
} ).tooltip( "open" );
|
2015-01-30 16:01:32 +00:00
|
|
|
assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" );
|
2015-08-24 12:50:46 +00:00
|
|
|
} );
|
2014-12-03 16:30:22 +00:00
|
|
|
|
2015-04-07 00:28:55 +00:00
|
|
|
} );
|