Commit 5c8d56d5 authored by Chris Rebert's avatar Chris Rebert

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.
parent 872e56fc
...@@ -41,11 +41,10 @@ $(function () { ...@@ -41,11 +41,10 @@ $(function () {
}) })
QUnit.test('should hide a collapsed element', function (assert) { QUnit.test('should hide a collapsed element', function (assert) {
assert.expect(2) assert.expect(1)
var $el = $('<div class="collapse"/>').bootstrapCollapse('hide') var $el = $('<div class="collapse"/>').bootstrapCollapse('hide')
assert.ok(!$el.hasClass('in'), 'does not have class "in"') 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) { QUnit.test('should not fire shown when show is prevented', function (assert) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment