aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/bootstrap-tooltip.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-09-22 21:37:08 -0700
committerMark Otto <[email protected]>2012-09-22 21:37:08 -0700
commitc3ea955661568b9b05075e62c0b5d2e8bf7ef10c (patch)
tree73e069a0fbd69e7b5764da3f18008d185859c520 /js/tests/unit/bootstrap-tooltip.js
parenta419e70a42f7f4c8165e640774082d3fec61b4c4 (diff)
parentebf94c53a5497ff6d2aa353027d3a2ac3b67b18a (diff)
downloadbootstrap-c3ea955661568b9b05075e62c0b5d2e8bf7ef10c.tar.xz
bootstrap-c3ea955661568b9b05075e62c0b5d2e8bf7ef10c.zip
Merge branch '2.1.2-wip' of github.com:twitter/bootstrap into 2.1.2-wip
Diffstat (limited to 'js/tests/unit/bootstrap-tooltip.js')
-rw-r--r--js/tests/unit/bootstrap-tooltip.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/tests/unit/bootstrap-tooltip.js b/js/tests/unit/bootstrap-tooltip.js
index 9844d6460..14d6b2274 100644
--- a/js/tests/unit/bootstrap-tooltip.js
+++ b/js/tests/unit/bootstrap-tooltip.js
@@ -113,7 +113,7 @@ $(function () {
}, 50)
})
- test("should show tooltip if leave event hasn't occurred before delay expires", function () {
+ test("should show tooltip if leave event hasn't occured before delay expires", function () {
var tooltip = $('<a href="#" rel="tooltip" title="Another tooltip"></a>')
.appendTo('#qunit-fixture')
.tooltip({ delay: 150 })
@@ -131,14 +131,14 @@ $(function () {
test("should destroy tooltip", function () {
var tooltip = $('<div/>').tooltip().on('click.foo', function(){})
ok(tooltip.data('tooltip'), 'tooltip has data')
- ok(tooltip.data('events').mouseover && tooltip.data('events').mouseout, 'tooltip has hover event')
- ok(tooltip.data('events').click[0].namespace == 'foo', 'tooltip has extra click.foo event')
+ ok($._data(tooltip[0], 'events').mouseover && $._data(tooltip[0], 'events').mouseout, 'tooltip has hover event')
+ ok($._data(tooltip[0], 'events').click[0].namespace == 'foo', 'tooltip has extra click.foo event')
tooltip.tooltip('show')
tooltip.tooltip('destroy')
ok(!tooltip.hasClass('in'), 'tooltip is hidden')
- ok(!tooltip.data('tooltip'), 'tooltip does not have data')
- ok(tooltip.data('events').click[0].namespace == 'foo', 'tooltip still has click.foo')
- ok(!tooltip.data('events').mouseover && !tooltip.data('events').mouseout, 'tooltip does not have any events')
+ ok(!$._data(tooltip[0], 'tooltip'), 'tooltip does not have data')
+ ok($._data(tooltip[0], 'events').click[0].namespace == 'foo', 'tooltip still has click.foo')
+ ok(!$._data(tooltip[0], 'events').mouseover && !$._data(tooltip[0], 'events').mouseout, 'tooltip does not have any events')
})
-})
+}) \ No newline at end of file