0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Must explicitly destroy tooltip in SVG unit test since its container is body.

Leaking tooltips across tests leads to confusion and sadness.
This commit is contained in:
Chris Rebert 2014-09-15 20:01:04 -07:00
parent 1783c70727
commit 73e3db0a2f

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' })