]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Collapse unit test: rm check that no-op hide adds style="height: 0px" 16011/head
authorChris Rebert <code@rebertia.com>
Fri, 6 Mar 2015 15:01:12 +0000 (07:01 -0800)
committerChris Rebert <code@rebertia.com>
Sat, 7 Mar 2015 02:10:53 +0000 (18:10 -0800)
Appears to be unnecessary and is broken by #16011,
which is otherwise quite sane.

js/tests/unit/collapse.js

index 40f586c2ec35390e6b72157f625e040074325e6c..8c01e57e860e202806137f7742ddbfa74b88da7d 100644 (file)
@@ -41,11 +41,10 @@ $(function () {
   })
 
   QUnit.test('should hide a collapsed element', function (assert) {
-    assert.expect(2)
+    assert.expect(1)
     var $el = $('<div class="collapse"/>').bootstrapCollapse('hide')
 
     assert.ok(!$el.hasClass('in'), 'does not have class "in"')
-    assert.ok(/height/i.test($el.attr('style')), 'has height set')
   })
 
   QUnit.test('should not fire shown when show is prevented', function (assert) {