mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Fix IE8 unit test breakage introduced by #14767
This commit is contained in:
parent
ab8dbc214e
commit
3c98dd35ba
@ -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 () {
|
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>'
|
var styles = '<style>'
|
||||||
+ '#scrollable-div { height: 200px; overflow: auto; }'
|
+ '#scrollable-div { height: 200px; overflow: auto; }'
|
||||||
+ '.tooltip-item { margin: 200px 0 400px; width: 150px; }'
|
+ '.tooltip-item { padding: 200px 0 400px; width: 150px; }'
|
||||||
+ '</style>'
|
+ '</style>'
|
||||||
var $styles = $(styles).appendTo('head')
|
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 () {
|
test('should display the tip on bottom whenever scrollable viewport has enough room if the given placement is "auto bottom"', function () {
|
||||||
var styles = '<style>'
|
var styles = '<style>'
|
||||||
+ '#scrollable-div { height: 200px; overflow: auto; }'
|
+ '#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>'
|
+ '</style>'
|
||||||
var $styles = $(styles).appendTo('head')
|
var $styles = $(styles).appendTo('head')
|
||||||
|
|
||||||
var $container = $('<div id="scrollable-div"/>').appendTo('#qunit-fixture')
|
var $container = $('<div id="scrollable-div"/>').appendTo('#qunit-fixture')
|
||||||
var $target = $('<div rel="tooltip" title="tip" class="tooltip-item">Tooltip Item</div>')
|
var $target = $('<div rel="tooltip" title="tip" class="tooltip-item">Tooltip Item</div>')
|
||||||
.appendTo($container)
|
.appendTo($container)
|
||||||
|
.before('<div class="spacer"/>')
|
||||||
|
.after('<div class="spacer"/>')
|
||||||
.bootstrapTooltip({
|
.bootstrapTooltip({
|
||||||
placement: 'bottom auto',
|
placement: 'bottom auto',
|
||||||
viewport: '#scrollable-div'
|
viewport: '#scrollable-div'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user