Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/bootstrap-collapse.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/tests/unit/bootstrap-collapse.js b/js/tests/unit/bootstrap-collapse.js
index 8e52898b5d..fb66135db9 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();
+ $('<div class="collapse" style="height: 0px"/>')
+ .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