diff options
| author | Jacob Thornton <[email protected]> | 2012-09-20 16:23:54 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-09-20 16:23:54 -0700 |
| commit | 667179f406ea66fbe2d688bb132eaa0c0f7383a6 (patch) | |
| tree | f0929e4039dc88c64b91ba11c3dd318e966b4a7c /js/tests/unit/bootstrap-tooltip.js | |
| parent | c92a75999f8b82c1a6fc997eca1cc0206c4c3bf1 (diff) | |
| download | bootstrap-667179f406ea66fbe2d688bb132eaa0c0f7383a6.tar.xz bootstrap-667179f406ea66fbe2d688bb132eaa0c0f7383a6.zip | |
added support for jquery 1.8.*
Diffstat (limited to 'js/tests/unit/bootstrap-tooltip.js')
| -rw-r--r-- | js/tests/unit/bootstrap-tooltip.js | 14 |
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 |
