diff options
Diffstat (limited to 'tests/unit/tooltip/tooltip_methods.js')
-rw-r--r-- | tests/unit/tooltip/tooltip_methods.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/tooltip/tooltip_methods.js b/tests/unit/tooltip/tooltip_methods.js index e6641a14a..ea69216d0 100644 --- a/tests/unit/tooltip/tooltip_methods.js +++ b/tests/unit/tooltip/tooltip_methods.js @@ -53,7 +53,7 @@ test( "open/close with tracking", function() { $.fx.off = false; }); -test( "enable/disable", function() { +test( "enable/disable", function( assert ) { expect( 11 ); $.fx.off = true; var tooltip, @@ -67,9 +67,9 @@ test( "enable/disable", function() { element.tooltip( "disable" ); equal( $( ".ui-tooltip" ).length, 0, "no tooltip when disabled" ); - ok( !element.tooltip( "widget" ).hasClass( "ui-state-disabled" ), "element doesn't get ui-state-disabled" ); + assert.lacksClasses( element.tooltip( "widget" ), "ui-state-disabled" ); ok( !element.tooltip( "widget" ).attr( "aria-disabled" ), "element doesn't get aria-disabled" ); - ok( !element.tooltip( "widget" ).hasClass( "ui-tooltip-disabled" ), "element doesn't get ui-tooltip-disabled" ); + assert.lacksClasses( element.tooltip( "widget" ), "ui-tooltip-disabled" ); strictEqual( tooltip.attr( "title" ), undefined, "title removed on disable" ); element.tooltip( "open" ); |