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",
|
2020-05-16 07:16:24 +00:00
|
|
|
"./helper",
|
2015-07-15 02:12:14 +00:00
|
|
|
"ui/widgets/tooltip"
|
2020-05-16 07:16:24 +00:00
|
|
|
], function( QUnit, $, testHelper ) {
|
2014-12-03 16:30:22 +00:00
|
|
|
|
2020-05-16 07:16:24 +00:00
|
|
|
var beforeAfterEach = testHelper.beforeAfterEach;
|
|
|
|
|
|
|
|
QUnit.module( "tooltip: (deprecated) options", beforeAfterEach() );
|
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
|
|
|
} );
|