diff options
| author | Yohn <[email protected]> | 2012-12-23 04:21:02 -0500 |
|---|---|---|
| committer | Yohn <[email protected]> | 2012-12-23 04:21:02 -0500 |
| commit | b6960d8cf9b3626b260bb41cb4454abc738ff46a (patch) | |
| tree | 2589034b1d3e870ed55c2121b87349b94c4c5f80 | |
| parent | d594d6377a7e9cda399c25a450b0d27df704d939 (diff) | |
| download | bootstrap-b6960d8cf9b3626b260bb41cb4454abc738ff46a.tar.xz bootstrap-b6960d8cf9b3626b260bb41cb4454abc738ff46a.zip | |
Update 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 c44f75757..a2206f2d7 100644 --- a/js/tests/unit/bootstrap-tooltip.js +++ b/js/tests/unit/bootstrap-tooltip.js @@ -164,4 +164,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') + }) }) |
