Skip to content

Commit

Permalink
Remove duplicate test.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 15, 2021
1 parent f6ff736 commit af52795
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions js/tests/unit/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,29 +629,6 @@ $(function () {
$tooltip.trigger('mouseenter')
})

QUnit.test('should not show tooltip if leave event occurs before delay expires', function (assert) {
assert.expect(2)
var done = assert.async()

var $tooltip = $('<a href="#" rel="tooltip" title="Another tooltip"/>')
.appendTo('#qunit-fixture')
.bootstrapTooltip({
delay: 150
})

setTimeout(function () {
assert.false($('.tooltip').is('.fade.show'), '100ms: tooltip not faded active')
$tooltip.trigger('mouseout')
}, 100)

setTimeout(function () {
assert.false($('.tooltip').is('.fade.show'), '200ms: tooltip not faded active')
done()
}, 200)

$tooltip.trigger('mouseenter')
})

QUnit.test('should not show tooltip if leave event occurs before delay expires, even if hide delay is 0', function (assert) {
assert.expect(2)
var done = assert.async()
Expand Down

0 comments on commit af52795

Please sign in to comment.