mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
Fix IE8 reporting height style as all uppercase
This commit is contained in:
parent
31373309a5
commit
05ddea314c
@ -33,14 +33,14 @@ $(function () {
|
|||||||
var $el = $('<div class="collapse"/>').bootstrapCollapse('show')
|
var $el = $('<div class="collapse"/>').bootstrapCollapse('show')
|
||||||
|
|
||||||
ok($el.hasClass('in'), 'has class "in"')
|
ok($el.hasClass('in'), 'has class "in"')
|
||||||
ok(!/height/.test($el.attr('style')), 'has height reset')
|
ok(!/height/i.test($el.attr('style')), 'has height reset')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('should hide a collapsed element', function () {
|
test('should hide a collapsed element', function () {
|
||||||
var $el = $('<div class="collapse"/>').bootstrapCollapse('hide')
|
var $el = $('<div class="collapse"/>').bootstrapCollapse('hide')
|
||||||
|
|
||||||
ok(!$el.hasClass('in'), 'does not have class "in"')
|
ok(!$el.hasClass('in'), 'does not have class "in"')
|
||||||
ok(/height/.test($el.attr('style')), 'has height set')
|
ok(/height/i.test($el.attr('style')), 'has height set')
|
||||||
})
|
})
|
||||||
|
|
||||||
test('should not fire shown when show is prevented', function () {
|
test('should not fire shown when show is prevented', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user