Commit 73e3db0a authored by Chris Rebert's avatar Chris Rebert
Browse files

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

Leaking tooltips across tests leads to confusion and sadness.
parent 1783c707
5 merge requests!28721Hot test,!14625Must explicitly destroy tooltip in SVG unit test since its container is body,!16605Test pull please ignore,!22103test,!25326Adjust examples
Showing with 2 additions and 0 deletions
+2 -0
......@@ -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' })
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment