Debian Codegraph @

tests/unit/tooltip/deprecated.js

raw symbols SCIP
1 define( [
2 "qunit",
3 "jquery",
4 "./helper",
5 "ui/widgets/tooltip"
6 ], function( QUnit, $, testHelper ) {
7 "use strict";
8
9 var beforeAfterEach = testHelper.beforeAfterEach;
10
11 QUnit.module( "tooltip: (deprecated) options", beforeAfterEach() );
12
13 QUnit.test( "tooltipClass", function( assert ) {
14 assert.expect( 1 );
15 var element = $( "#tooltipped1" ).tooltip( {
16 tooltipClass: "custom"
17 } ).tooltip( "open" );
18 assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" );
19
20 element.tooltip( "destroy" );
21 } );
22
23 } );