diff options
| author | XhmikosR <[email protected]> | 2014-03-01 18:19:50 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2014-04-09 10:01:48 +0300 |
| commit | 45b476bdbff7ac38518deb7898529bb9510f648f (patch) | |
| tree | c71c86db355f6194b39b68895b5999d4d5f6a746 /js/tests/unit/tooltip.js | |
| parent | de86b36b508096eea1f9326983ab4d50358f66a5 (diff) | |
| download | bootstrap-45b476bdbff7ac38518deb7898529bb9510f648f.tar.xz bootstrap-45b476bdbff7ac38518deb7898529bb9510f648f.zip | |
JS: remove unused variables.
Diffstat (limited to 'js/tests/unit/tooltip.js')
| -rw-r--r-- | js/tests/unit/tooltip.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index e670883e3..e6ae11993 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -68,7 +68,7 @@ $(function () { test('should fire show event', function () { stop() - var tooltip = $('<div title="tooltip title"></div>') + $('<div title="tooltip title"></div>') .on('show.bs.tooltip', function () { ok(true, 'show was called') start() @@ -78,7 +78,7 @@ $(function () { test('should fire shown event', function () { stop() - var tooltip = $('<div title="tooltip title"></div>') + $('<div title="tooltip title"></div>') .on('shown.bs.tooltip', function () { ok(true, 'shown was called') start() @@ -88,7 +88,7 @@ $(function () { test('should not fire shown event when default prevented', function () { stop() - var tooltip = $('<div title="tooltip title"></div>') + $('<div title="tooltip title"></div>') .on('show.bs.tooltip', function (e) { e.preventDefault() ok(true, 'show was called') @@ -102,7 +102,7 @@ $(function () { test('should fire hide event', function () { stop() - var tooltip = $('<div title="tooltip title"></div>') + $('<div title="tooltip title"></div>') .on('shown.bs.tooltip', function () { $(this).tooltip('hide') }) @@ -115,7 +115,7 @@ $(function () { test('should fire hidden event', function () { stop() - var tooltip = $('<div title="tooltip title"></div>') + $('<div title="tooltip title"></div>') .on('shown.bs.tooltip', function () { $(this).tooltip('hide') }) @@ -128,7 +128,7 @@ $(function () { test('should not fire hidden event when default prevented', function () { stop() - var tooltip = $('<div title="tooltip title"></div>') + $('<div title="tooltip title"></div>') .on('shown.bs.tooltip', function () { $(this).tooltip('hide') }) @@ -272,14 +272,14 @@ $(function () { test('should show tooltip with delegate selector on click', function () { var div = $('<div><a href="#" rel="tooltip" title="Another tooltip"></a></div>') - var tooltip = div.appendTo('#qunit-fixture') + div.appendTo('#qunit-fixture') .tooltip({ selector: 'a[rel=tooltip]', trigger: 'click' }) div.find('a').trigger('click') ok($('.tooltip').is('.fade.in'), 'tooltip is faded in') }) test('should show tooltip when toggle is called', function () { - var tooltip = $('<a href="#" rel="tooltip" title="tooltip on toggle"></a>') + $('<a href="#" rel="tooltip" title="tooltip on toggle"></a>') .appendTo('#qunit-fixture') .tooltip({trigger: 'manual'}) .tooltip('toggle') @@ -298,8 +298,8 @@ $(function () { test('should place tooltip inside window', function () { var container = $('<div />').appendTo('body') - .css({position: 'absolute', width: 200, height: 200, bottom: 0, left: 0}), - tooltip = $('<a href="#" title="Very very very very very very very very long tooltip">Hover me</a>') + .css({position: 'absolute', width: 200, height: 200, bottom: 0, left: 0}) + $('<a href="#" title="Very very very very very very very very long tooltip">Hover me</a>') .css({position: 'absolute', top: 0, left: 0}) .appendTo(container) .tooltip({placement: 'top', animate: false}) |
