From: Yohn Date: Sun, 23 Dec 2012 09:21:02 +0000 (-0500) Subject: Update js/tests/unit/bootstrap-tooltip.js X-Git-Tag: v2.3.0^2~63^2^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6960d8cf9b3626b260bb41cb4454abc738ff46a;p=thirdparty%2Fbootstrap.git Update js/tests/unit/bootstrap-tooltip.js --- diff --git a/js/tests/unit/bootstrap-tooltip.js b/js/tests/unit/bootstrap-tooltip.js index c44f75757a..a2206f2d7c 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 = $('') + .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') + }) })