Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohn <john.skem9@gmail.com>2012-12-20 13:36:57 +0400
committerYohn <john.skem9@gmail.com>2012-12-20 13:36:57 +0400
commita6705246d048ade327c5f93b4cc610ffbba86ee6 (patch)
tree3e2d6a58bd59fd93b8b4b26830edf80398ae17ff /js/tests/unit/bootstrap-tooltip.js
parente21b6459ad162296f94b2d9aeaf8807a153d3c8a (diff)
Update js/tests/unit/bootstrap-tooltip.js
Diffstat (limited to 'js/tests/unit/bootstrap-tooltip.js')
-rw-r--r--js/tests/unit/bootstrap-tooltip.js10
1 files changed, 9 insertions, 1 deletions
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 = $('<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')
+ })
+})