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

18 lines
382 B
JavaScript
Raw Permalink Normal View History

define( [
2016-04-06 13:59:12 +00:00
"qunit",
"jquery",
"ui/widgets/tooltip"
2016-04-06 13:59:12 +00:00
], function( QUnit, $ ) {
2016-04-06 13:59:12 +00:00
QUnit.module( "tooltip: (deprecated) options" );
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( {
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
} );
} );