diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2023-03-30 10:09:12 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2023-05-10 10:53:57 +0200 |
commit | 9dc2bf9737ba9c877b7b9f6e892100580adc0f2e (patch) | |
tree | 1bd055234e89af96b82cf0096a7c8a8d98a3ffd4 /tests/unit/tooltip/methods.js | |
parent | 0977ea1b48355bfddc98cb16673ea8b627904dab (diff) | |
download | jquery-ui-9dc2bf9737ba9c877b7b9f6e892100580adc0f2e.tar.gz jquery-ui-9dc2bf9737ba9c877b7b9f6e892100580adc0f2e.zip |
Tests: Fix tooltip tests by destroying tooltips
Some tests were not properly destroying tooltips which made tests
start to fail with the new QUnit.
Ref gh-2157
Diffstat (limited to 'tests/unit/tooltip/methods.js')
-rw-r--r-- | tests/unit/tooltip/methods.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/tooltip/methods.js b/tests/unit/tooltip/methods.js index b7a512ad1..5045a622c 100644 --- a/tests/unit/tooltip/methods.js +++ b/tests/unit/tooltip/methods.js @@ -96,6 +96,8 @@ QUnit.test( "enable/disable", function( assert ) { tooltip = $( "#" + element.data( "ui-tooltip-id" ) ); assert.ok( tooltip.is( ":visible" ) ); $.fx.off = false; + + element.tooltip( "destroy" ); } ); QUnit.test( "enable/disable delegated", function( assert ) { @@ -118,6 +120,8 @@ QUnit.test( "widget", function( assert ) { widgetElement = element.tooltip( "widget" ); assert.equal( widgetElement.length, 1, "one element" ); assert.strictEqual( widgetElement[ 0 ], element[ 0 ], "same element" ); + + element.tooltip( "destroy" ); } ); QUnit.test( "preserve changes to title attributes on close and destroy", function( assert ) { |