Skip to content

Commit

Permalink
Remove commented out test
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 27, 2020
1 parent 562d09e commit ce74282
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions js/tests/unit/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,22 +350,6 @@ $(function () {
assert.ok(!$._data($tooltip[0], 'events').mouseover && !$._data($tooltip[0], 'events').mouseout, 'tooltip does not have hover events')
})

// QUnit.test('should show tooltip with delegate selector on click', function (assert) {
// assert.expect(2)
// var $div = $('<div><a href="#" rel="tooltip" title="Another tooltip"/></div>')
// .appendTo('#qunit-fixture')
// .bootstrapTooltip({
// selector: 'a[rel="tooltip"]',
// trigger: 'click'
// })

// $div.find('a').trigger('click')
// assert.true($('.tooltip').is('.fade.in'), 'tooltip is faded in')

// $div.find('a').trigger('click')
// assert.strictEqual($div.data('bs.tooltip').tip.parentNode, null, 'tooltip removed')
// })

QUnit.test('should show tooltip when toggle is called', function (assert) {
assert.expect(1)
$('<a href="#" rel="tooltip" title="tooltip on toggle"/>')
Expand Down

0 comments on commit ce74282

Please sign in to comment.