diff options
| author | Chris Rebert <[email protected]> | 2014-09-15 20:01:04 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-09-15 20:01:06 -0700 |
| commit | 73e3db0a2f0134d4755b8bd4153cb1b6b3d9842d (patch) | |
| tree | 724250d65167404ca6fdd31a111c77db5a620172 | |
| parent | 1783c7072726495f9cc9b41e04d8e5180e7868a5 (diff) | |
| download | bootstrap-73e3db0a2f0134d4755b8bd4153cb1b6b3d9842d.tar.xz bootstrap-73e3db0a2f0134d4755b8bd4153cb1b6b3d9842d.zip | |
Must explicitly destroy tooltip in SVG unit test since its container is body.
Leaking tooltips across tests leads to confusion and sadness.
| -rw-r--r-- | js/tests/unit/tooltip.js | 2 |
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' }) |
