mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 16:50:00 +02:00
clean up styles
This commit is contained in:
@@ -29,9 +29,6 @@
|
||||
<script src="../../js/bootstrap-typeahead.js"></script>
|
||||
<script src="../../js/bootstrap-affix.js"></script>
|
||||
|
||||
<!-- Needed for testing -->
|
||||
<link rel="stylesheet" type="text/css" href="unit/bootstrap-tooltip.css" />
|
||||
|
||||
<!-- unit tests -->
|
||||
<script src="unit/bootstrap-transition.js"></script>
|
||||
<script src="unit/bootstrap-alert.js"></script>
|
||||
|
13
js/tests/unit/bootstrap-tooltip.css
vendored
13
js/tests/unit/bootstrap-tooltip.css
vendored
@@ -1,13 +0,0 @@
|
||||
|
||||
|
||||
.tooltip{
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.tooltip-inner{
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.tooltip.top .tooltip-arrow{
|
||||
position: absolute;
|
||||
}
|
21
js/tests/unit/bootstrap-tooltip.js
vendored
21
js/tests/unit/bootstrap-tooltip.js
vendored
@@ -291,25 +291,4 @@ $(function () {
|
||||
container.remove()
|
||||
}, 100)
|
||||
})
|
||||
|
||||
test("arrow should point to element", function(){
|
||||
var container = $("<div />").appendTo("body")
|
||||
.css({position: "absolute", bottom: 0, left: 0, textAlign: "right", width: 300, height: 300})
|
||||
, p = $("<p style='margin-top:200px' />").appendTo(container)
|
||||
, tooltiped = $("<a href='#' title='very very very very very very very long tooltip'>Hover me</a>")
|
||||
.css({marginTop: 200})
|
||||
.appendTo(p)
|
||||
.tooltip({placement: "top", animate: false})
|
||||
.tooltip("show")
|
||||
|
||||
stop()
|
||||
|
||||
setTimeout(function(){
|
||||
var arrow = container.find(".tooltip-arrow")
|
||||
|
||||
start()
|
||||
ok(Math.abs(arrow.offset().left - tooltiped.offset().left - tooltiped.outerWidth()/2) <= 1)
|
||||
container.remove()
|
||||
}, 100)
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user