]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update js/tests/unit/bootstrap-tooltip.js 6349/head
authorYohn <john.skem9@gmail.com>
Thu, 20 Dec 2012 09:36:57 +0000 (04:36 -0500)
committerYohn <john.skem9@gmail.com>
Thu, 20 Dec 2012 09:36:57 +0000 (04:36 -0500)
js/tests/unit/bootstrap-tooltip.js

index ba51347433ffaa12bfbaad5023fd71865089e390..c44f75757a161fd951f21f517cd745f91da04706 100644 (file)
@@ -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 = $('<a href="#" rel="tooltip" title="tooltip on toggle"></a>')
+          .appendTo('#qunit-fixture')
+          .tooltip({trigger: 'manual'})
+          .tooltip('toggle')
+        ok($(".tooltip").is('.fade.in'), 'tooltip should be toggled in')
+      })
+})