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/deprecated.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/deprecated.js')
-rw-r--r-- | tests/unit/tooltip/deprecated.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/tooltip/deprecated.js b/tests/unit/tooltip/deprecated.js index 4d3975e84..cc4dcf0ee 100644 --- a/tests/unit/tooltip/deprecated.js +++ b/tests/unit/tooltip/deprecated.js @@ -16,6 +16,8 @@ QUnit.test( "tooltipClass", function( assert ) { tooltipClass: "custom" } ).tooltip( "open" ); assert.hasClasses( $( "#" + element.data( "ui-tooltip-id" ) ), "custom" ); + + element.tooltip( "destroy" ); } ); } ); |