aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorGuillaume Gautreau <[email protected]>2013-01-27 10:56:01 +0100
committerGuillaume Gautreau <[email protected]>2013-01-27 10:56:01 +0100
commitee71fb492ffc664627436431c5f7b71d2107a526 (patch)
tree5e9a5233222c3b4a0934968249b9008dfc471a1b /js/tests
parent5b0f956a60d8bd41084a167f83c25e276de11705 (diff)
downloadbootstrap-ee71fb492ffc664627436431c5f7b71d2107a526.tar.xz
bootstrap-ee71fb492ffc664627436431c5f7b71d2107a526.zip
No semicolumns
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/bootstrap-tooltip.js42
1 files changed, 21 insertions, 21 deletions
diff --git a/js/tests/unit/bootstrap-tooltip.js b/js/tests/unit/bootstrap-tooltip.js
index 666c417ee..dc4c19bcf 100644
--- a/js/tests/unit/bootstrap-tooltip.js
+++ b/js/tests/unit/bootstrap-tooltip.js
@@ -259,17 +259,17 @@ $(function () {
.css({position: "absolute", top:0, left: 0})
.appendTo(container)
.tooltip({placement: "top", animate: false})
- .tooltip("show");
+ .tooltip("show")
- stop();
+ stop()
setTimeout(function(){
- ok($(".tooltip").offset().left >= 0);
+ ok($(".tooltip").offset().left >= 0)
- start();
- container.remove();
+ start()
+ container.remove()
}, 100)
- });
+ })
test("should place tooltip on top of element", function(){
var container = $("<div />").appendTo("body")
@@ -279,18 +279,18 @@ $(function () {
.css({marginTop: 200})
.appendTo(p)
.tooltip({placement: "top", animate: false})
- .tooltip("show");
+ .tooltip("show")
- stop();
+ stop()
setTimeout(function(){
- var tooltip = container.find(".tooltip");
+ var tooltip = container.find(".tooltip")
- start();
- ok(tooltip.offset().top + tooltip.outerHeight() <= tooltiped.offset().top);
- container.remove();
+ start()
+ ok(tooltip.offset().top + tooltip.outerHeight() <= tooltiped.offset().top)
+ container.remove()
}, 100)
- });
+ })
test("arrow should point to element", function(){
var container = $("<div />").appendTo("body")
@@ -300,16 +300,16 @@ $(function () {
.css({marginTop: 200})
.appendTo(p)
.tooltip({placement: "top", animate: false})
- .tooltip("show");
+ .tooltip("show")
- stop();
+ stop()
setTimeout(function(){
- var arrow = container.find(".tooltip-arrow");
+ var arrow = container.find(".tooltip-arrow")
- start();
- ok(Math.abs(arrow.offset().left - tooltiped.offset().left - tooltiped.outerWidth()/2) <= 1);
- container.remove();
- }, 100);
- });
+ start()
+ ok(Math.abs(arrow.offset().left - tooltiped.offset().left - tooltiped.outerWidth()/2) <= 1)
+ container.remove()
+ }, 100)
+ })
})