blob: 4d3975e84b1a26c45075007996a7c7697697a006 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
define( [
"qunit",
"jquery",
"./helper",
"ui/widgets/tooltip"
], function( QUnit, $, testHelper ) {
"use strict";
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" );
} );
} );
|