From: Chris Rebert Date: Fri, 6 Mar 2015 15:01:12 +0000 (-0800) Subject: Collapse unit test: rm check that no-op hide adds style="height: 0px" X-Git-Tag: v3.3.4~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c8d56d515da49b2051743fa0bacba79967778c2;p=thirdparty%2Fbootstrap.git Collapse unit test: rm check that no-op hide adds style="height: 0px" Appears to be unnecessary and is broken by #16011, which is otherwise quite sane. --- diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 40f586c2ec..8c01e57e86 100644 --- a/js/tests/unit/collapse.js +++ b/js/tests/unit/collapse.js @@ -41,11 +41,10 @@ $(function () { }) QUnit.test('should hide a collapsed element', function (assert) { - assert.expect(2) + assert.expect(1) var $el = $('
').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) {