aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-10-22 22:09:58 +0200
committerHeinrich Fenkart <[email protected]>2014-10-22 22:09:58 +0200
commit3c98dd35bafd4788d42eb3b083ef8d2defcdcf66 (patch)
treeb276363ab2f73d775ee75d68908d17c2cd0d9751 /js
parentab8dbc214e7ea43fec65c4464b8db7392f3df905 (diff)
downloadbootstrap-3c98dd35bafd4788d42eb3b083ef8d2defcdcf66.tar.xz
bootstrap-3c98dd35bafd4788d42eb3b083ef8d2defcdcf66.zip
Fix IE8 unit test breakage introduced by #14767
Diffstat (limited to 'js')
-rw-r--r--js/tests/unit/tooltip.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js
index 7b5f8adf7..d05be3d55 100644
--- a/js/tests/unit/tooltip.js
+++ b/js/tests/unit/tooltip.js
@@ -461,7 +461,7 @@ $(function () {
test('should display the tip on bottom whenever scrollable viewport doesn\'t have enough room if the given placement is "auto top"', function () {
var styles = '<style>'
+ '#scrollable-div { height: 200px; overflow: auto; }'
- + '.tooltip-item { margin: 200px 0 400px; width: 150px; }'
+ + '.tooltip-item { padding: 200px 0 400px; width: 150px; }'
+ '</style>'
var $styles = $(styles).appendTo('head')
@@ -487,13 +487,17 @@ $(function () {
test('should display the tip on bottom whenever scrollable viewport has enough room if the given placement is "auto bottom"', function () {
var styles = '<style>'
+ '#scrollable-div { height: 200px; overflow: auto; }'
- + '.tooltip-item { margin: 200px 0 400px; width: 150px; }'
+ + '.spacer { height: 400px; }'
+ + '.spacer:first-child { height: 200px; }'
+ + '.tooltip-item { width: 150px; }'
+ '</style>'
var $styles = $(styles).appendTo('head')
var $container = $('<div id="scrollable-div"/>').appendTo('#qunit-fixture')
var $target = $('<div rel="tooltip" title="tip" class="tooltip-item">Tooltip Item</div>')
.appendTo($container)
+ .before('<div class="spacer"/>')
+ .after('<div class="spacer"/>')
.bootstrapTooltip({
placement: 'bottom auto',
viewport: '#scrollable-div'