mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Update js/tests/unit/bootstrap-tooltip.js
This commit is contained in:
parent
e21b6459ad
commit
a6705246d0
10
js/tests/unit/bootstrap-tooltip.js
vendored
10
js/tests/unit/bootstrap-tooltip.js
vendored
@ -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…
x
Reference in New Issue
Block a user