mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Update js/tests/unit/bootstrap-tooltip.js
This commit is contained in:
parent
d594d6377a
commit
b6960d8cf9
10
js/tests/unit/bootstrap-tooltip.js
vendored
10
js/tests/unit/bootstrap-tooltip.js
vendored
@ -164,4 +164,14 @@ $(function () {
|
||||
.tooltip('toggle')
|
||||
ok($(".tooltip").is('.fade.in'), 'tooltip should be toggled in')
|
||||
})
|
||||
|
||||
test("should place tooltips inside the body", function () {
|
||||
var tooltip = $('<a href="#" rel="tooltip" title="Another tooltip"></a>')
|
||||
.appendTo('#qunit-fixture')
|
||||
.tooltip({container:'body'})
|
||||
.tooltip('show')
|
||||
ok($("body > .tooltip").length, 'inside the body')
|
||||
ok(!$("#qunit-fixture > .tooltip").length, 'not found in parent')
|
||||
tooltip.tooltip('hide')
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user