Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2014-09-16 07:01:04 +0400
committerChris Rebert <code@rebertia.com>2014-09-16 07:01:06 +0400
commit73e3db0a2f0134d4755b8bd4153cb1b6b3d9842d (patch)
tree724250d65167404ca6fdd31a111c77db5a620172 /js/tests/unit/tooltip.js
parent1783c7072726495f9cc9b41e04d8e5180e7868a5 (diff)
Must explicitly destroy tooltip in SVG unit test since its container is body.
Leaking tooltips across tests leads to confusion and sadness.
Diffstat (limited to 'js/tests/unit/tooltip.js')
-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 b578704af4..c75924e9ff 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' })