mirror of https://github.com/twbs/bootstrap.git
Update js/tests/unit/bootstrap-tooltip.js
This commit is contained in:
parent
e21b6459ad
commit
a6705246d0
|
|
@ -156,4 +156,12 @@ $(function () {
|
|||
div.find('a').trigger('click')
|
||||
ok($(".tooltip").is('.fade.in'), 'tooltip is faded in')
|
||||
})
|
||||
})
|
||||
|
||||
test("should show tooltip when toggle is called", function () {
|
||||
var tooltip = $('<a href="#" rel="tooltip" title="tooltip on toggle"></a>')
|
||||
.appendTo('#qunit-fixture')
|
||||
.tooltip({trigger: 'manual'})
|
||||
.tooltip('toggle')
|
||||
ok($(".tooltip").is('.fade.in'), 'tooltip should be toggled in')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue