Merge pull request #14625 from twbs/svg-tooltip-test-fix

Must explicitly destroy tooltip in SVG unit test since its container is body
This commit is contained in:
Chris Rebert 2014-09-15 20:05:24 -07:00
commit 0e18ee643b

View File

@ -768,6 +768,8 @@ $(function () {
var offset = $('.tooltip').offset()
$styles.remove()
ok(Math.abs(offset.left - 88) <= 1, 'tooltip has correct horizontal location')
$circle.bootstrapTooltip('hide')
equal($('.tooltip').length, 0, 'tooltip removed from dom')
start()
})
.bootstrapTooltip({ container: 'body', placement: 'top', trigger: 'manual' })