Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <jacobthornton@gmail.com>2014-01-17 01:33:09 +0400
committerfat <jacobthornton@gmail.com>2014-01-17 01:33:09 +0400
commit2f76821a4dce7683168ab190e53c64fdf13dd469 (patch)
tree7fb60babcf89856fae934ea30067d13f6e3b1b1f /js/tests/unit/tooltip.js
parentbc074d54883de361f98429ab39b004ea89f3557a (diff)
new qunit
Diffstat (limited to 'js/tests/unit/tooltip.js')
-rw-r--r--js/tests/unit/tooltip.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js
index d921bee7fd..2a74b2a55c 100644
--- a/js/tests/unit/tooltip.js
+++ b/js/tests/unit/tooltip.js
@@ -387,6 +387,8 @@ $(function () {
})
test('tooltips should be placed dynamically, with the dynamic placement option', function () {
+ $(document.body).scrollTop(0) // force to top of page
+
$.support.transition = false
var ttContainer = $('<div id="dynamic-tt-test"/>').css({
'height' : 400,
@@ -402,7 +404,6 @@ $(function () {
.tooltip({placement: 'auto'})
.tooltip('show')
-
ok($('.tooltip').is('.bottom'), 'top positioned tooltip is dynamically positioned bottom')
topTooltip.tooltip('hide')