From aaabe2a46c64e7d9ffd5735dba2db4f3cf9906f5 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 24 Apr 2012 18:06:41 -0700 Subject: fix regression in resetting collapse to auto on collapse open. (+ add spec and rebuild) --- js/tests/unit/bootstrap-collapse.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'js/tests') diff --git a/js/tests/unit/bootstrap-collapse.js b/js/tests/unit/bootstrap-collapse.js index 8e52898b5..fb66135db 100644 --- a/js/tests/unit/bootstrap-collapse.js +++ b/js/tests/unit/bootstrap-collapse.js @@ -37,4 +37,18 @@ $(function () { .collapse('show') }) + test("should reset style to auto after finishing opening collapse", function () { + $.support.transition = false + stop(); + $('
') + .bind('show', function () { + ok(this.style.height == '0px') + }) + .bind('shown', function () { + ok(this.style.height == 'auto') + start() + }) + .collapse('show') + }) + }) \ No newline at end of file -- cgit v1.2.3