From: Yohn Date: Thu, 20 Dec 2012 09:36:57 +0000 (-0500) Subject: Update js/tests/unit/bootstrap-tooltip.js X-Git-Tag: v2.3.0^2~63^2~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6349%2Fhead;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 ba51347433..c44f75757a 100644 --- a/js/tests/unit/bootstrap-tooltip.js +++ b/js/tests/unit/bootstrap-tooltip.js @@ -156,4 +156,12 @@ $(function () { div.find('a').trigger('click') ok($(".tooltip").is('.fade.in'), 'tooltip is faded in') }) -}) \ No newline at end of file + + test("should show tooltip when toggle is called", function () { + var tooltip = $('') + .appendTo('#qunit-fixture') + .tooltip({trigger: 'manual'}) + .tooltip('toggle') + ok($(".tooltip").is('.fade.in'), 'tooltip should be toggled in') + }) +})