0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

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.
This commit is contained in:
Chris Rebert 2015-03-06 07:01:12 -08:00
parent 872e56fcf2
commit 5c8d56d515

View 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) {