aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/tooltip.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2014-04-09 10:07:35 +0300
committerXhmikosR <[email protected]>2014-04-09 10:07:35 +0300
commitee2df11e93c88dff946560d81fd5e2d8fbdd61d4 (patch)
tree003d888c65d75cc5bb5f2d103ae099980dbfd514 /js/tests/unit/tooltip.js
parentde86b36b508096eea1f9326983ab4d50358f66a5 (diff)
parent2f0f8ec6d13129cad43e710a3886e59214367c89 (diff)
downloadbootstrap-ee2df11e93c88dff946560d81fd5e2d8fbdd61d4.tar.xz
bootstrap-ee2df11e93c88dff946560d81fd5e2d8fbdd61d4.zip
Merge pull request #13091 from twbs/unused-js
Remove unused javascript
Diffstat (limited to 'js/tests/unit/tooltip.js')
-rw-r--r--js/tests/unit/tooltip.js20
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})