diff options
| author | Chris Rebert <[email protected]> | 2015-03-06 07:01:12 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-03-06 18:10:53 -0800 |
| commit | 5c8d56d515da49b2051743fa0bacba79967778c2 (patch) | |
| tree | 702570473d0c888387359b3c8a8292648e680e81 /js | |
| parent | 872e56fcf2a7bb1ec936d9e0a5dfed8d31f87590 (diff) | |
| download | bootstrap-5c8d56d515da49b2051743fa0bacba79967778c2.tar.xz bootstrap-5c8d56d515da49b2051743fa0bacba79967778c2.zip | |
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.
Diffstat (limited to 'js')
| -rw-r--r-- | js/tests/unit/collapse.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js index 40f586c2e..8c01e57e8 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 = $('<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) { |
