]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix IE8 reporting height style as all uppercase
authorHeinrich Fenkart <hnrch02@gmail.com>
Tue, 8 Jul 2014 20:19:46 +0000 (22:19 +0200)
committerHeinrich Fenkart <hnrch02@gmail.com>
Tue, 8 Jul 2014 22:42:02 +0000 (00:42 +0200)
js/tests/unit/collapse.js

index 976bdcd7bf8aef02b13238de699fa3a1855aeabf..8e6bb82736d8c43e2eb5798f59c0f04e65854040 100644 (file)
@@ -33,14 +33,14 @@ $(function () {
     var $el = $('<div class="collapse"/>').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 = $('<div class="collapse"/>').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 () {