From: Heinrich Fenkart Date: Tue, 8 Jul 2014 20:19:46 +0000 (+0200) Subject: Fix IE8 reporting height style as all uppercase X-Git-Tag: v3.3.0~352^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05ddea314cb03832f0914939efc7ad6c1f7d8d9b;p=thirdparty%2Fbootstrap.git Fix IE8 reporting height style as all uppercase --- diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 976bdcd7bf..8e6bb82736 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -33,14 +33,14 @@ $(function () { var $el = $('
').bootstrapCollapse('show') 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 () { var $el = $('
').bootstrapCollapse('hide') 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 () {