diff options
author | fat-kun <Jacobthornton@gmail.com> | 2012-12-25 04:17:25 +0400 |
---|---|---|
committer | fat-kun <Jacobthornton@gmail.com> | 2012-12-25 04:17:25 +0400 |
commit | b9c7f29134f2fa81931fa4663fc40ef7a0e363d1 (patch) | |
tree | bab9cb035733392d6a5e5823e8ddd25bd130f877 /js/tests/unit/bootstrap-tooltip.js | |
parent | 90cdef8dfe851b1444ce19089376f1ceb6d4484a (diff) | |
parent | 340d90138c86bdd86e74712d53c776c77f17c477 (diff) |
Merge pull request #6378 from Yohn/patch-7
fixes tooltip insert problems
Diffstat (limited to 'js/tests/unit/bootstrap-tooltip.js')
-rw-r--r-- | js/tests/unit/bootstrap-tooltip.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/tests/unit/bootstrap-tooltip.js b/js/tests/unit/bootstrap-tooltip.js index 1370ef381e..ef21bd96b4 100644 --- a/js/tests/unit/bootstrap-tooltip.js +++ b/js/tests/unit/bootstrap-tooltip.js @@ -241,4 +241,14 @@ $(function () { .tooltip('toggle') ok($(".tooltip").is('.fade.in'), 'tooltip should be toggled in') }) + + test("should place tooltips inside the body", function () { + var tooltip = $('<a href="#" rel="tooltip" title="Another tooltip"></a>') + .appendTo('#qunit-fixture') + .tooltip({container:'body'}) + .tooltip('show') + ok($("body > .tooltip").length, 'inside the body') + ok(!$("#qunit-fixture > .tooltip").length, 'not found in parent') + tooltip.tooltip('hide') + }) }) |