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

24 lines
523 B
JavaScript
Raw Normal View History

define( [
2016-04-06 13:59:12 +00:00
"qunit",
"jquery",
"./helper",
"ui/widgets/tooltip"
], function( QUnit, $, testHelper ) {
"use strict";
var beforeAfterEach = testHelper.beforeAfterEach;
QUnit.module( "tooltip: (deprecated) options", beforeAfterEach() );
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" );
element.tooltip( "destroy" );
2015-08-24 12:50:46 +00:00
} );
} );