summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap/js/tests/unit/modal.js
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.me>2013-08-19 20:05:19 -0400
committerThomas Park <thomas@thomaspark.me>2013-08-19 20:05:19 -0400
commit424dd8bc118b36c9173dbdc05661086c8566fd17 (patch)
tree6e8d8f9c4aa7b1bd209448f5ac7d78b4e983b573 /bower_components/bootstrap/js/tests/unit/modal.js
parentd29efdf7b225badbee54f074400c996be7159233 (diff)
update bootstrap to 3.0.0 final
Diffstat (limited to 'bower_components/bootstrap/js/tests/unit/modal.js')
-rwxr-xr-xbower_components/bootstrap/js/tests/unit/modal.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/bower_components/bootstrap/js/tests/unit/modal.js b/bower_components/bootstrap/js/tests/unit/modal.js
index 2c610d83..5755d275 100755
--- a/bower_components/bootstrap/js/tests/unit/modal.js
+++ b/bower_components/bootstrap/js/tests/unit/modal.js
@@ -174,4 +174,23 @@ $(function () {
})
.modal("show")
})
+
+ test("should close reopened modal with [data-dismiss=modal] click", function () {
+ stop()
+ $.support.transition = false
+ var div = $("<div id='modal-test'><div class='contents'><div id='close' data-dismiss='modal'></div></div></div>")
+ div
+ .bind("shown.bs.modal", function () {
+ $('#close').click()
+ ok(!$('#modal-test').is(":visible"), 'modal hidden')
+ })
+ .one("hidden.bs.modal", function() {
+ div.one('hidden.bs.modal', function () {
+ start()
+ }).modal("show")
+ })
+ .modal("show")
+
+ div.remove()
+ })
})