aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/tooltip.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-12-06 16:51:59 -0800
committerChris Rebert <[email protected]>2013-12-06 17:23:45 -0800
commit351f86e1db6bbb5f37e67323094fc08f4aeceecd (patch)
tree9d3b67a8880ee3cf66c6cb12588eec3498e65bd9 /js/tests/unit/tooltip.js
parent4be126e0142556805b59cb5a62d33c4a3fd2b8d4 (diff)
downloadbootstrap-351f86e1db6bbb5f37e67323094fc08f4aeceecd.tar.xz
bootstrap-351f86e1db6bbb5f37e67323094fc08f4aeceecd.zip
fix some JS to pass jscs
Diffstat (limited to 'js/tests/unit/tooltip.js')
-rw-r--r--js/tests/unit/tooltip.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js
index 2139dc811..cc559ccb6 100644
--- a/js/tests/unit/tooltip.js
+++ b/js/tests/unit/tooltip.js
@@ -290,7 +290,7 @@ $(function () {
test("should place tooltips inside the body", function () {
var tooltip = $('<a href="#" rel="tooltip" title="Another tooltip"></a>')
.appendTo('#qunit-fixture')
- .tooltip({container:'body'})
+ .tooltip({container: 'body'})
.tooltip('show')
ok($("body > .tooltip").length, 'inside the body')
ok(!$("#qunit-fixture > .tooltip").length, 'not found in parent')
@@ -301,7 +301,7 @@ $(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", top:0, left: 0})
+ .css({position: "absolute", top: 0, left: 0})
.appendTo(container)
.tooltip({placement: "top", animate: false})
.tooltip("show")
@@ -347,7 +347,7 @@ $(function () {
.tooltip('show')
, tooltip = container.find(".tooltip")
- ok( Math.round(target.offset().top + target[0].offsetHeight/2 - tooltip[0].offsetHeight/2) === Math.round(tooltip.offset().top) )
+ ok( Math.round(target.offset().top + (target[0].offsetHeight / 2) - (tooltip[0].offsetHeight / 2)) === Math.round(tooltip.offset().top) )
target.tooltip('hide')
})