aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-09-15 20:05:24 -0700
committerChris Rebert <[email protected]>2014-09-15 20:05:24 -0700
commit0e18ee643b6e788324275929fa418cf0b8c96203 (patch)
tree724250d65167404ca6fdd31a111c77db5a620172
parent1783c7072726495f9cc9b41e04d8e5180e7868a5 (diff)
parent73e3db0a2f0134d4755b8bd4153cb1b6b3d9842d (diff)
downloadbootstrap-0e18ee643b6e788324275929fa418cf0b8c96203.tar.xz
bootstrap-0e18ee643b6e788324275929fa418cf0b8c96203.zip
Merge pull request #14625 from twbs/svg-tooltip-test-fix
Must explicitly destroy tooltip in SVG unit test since its container is body
-rw-r--r--js/tests/unit/tooltip.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js
index b578704af..c75924e9f 100644
--- a/js/tests/unit/tooltip.js
+++ b/js/tests/unit/tooltip.js
@@ -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' })