From 424dd8bc118b36c9173dbdc05661086c8566fd17 Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Mon, 19 Aug 2013 20:05:19 -0400 Subject: update bootstrap to 3.0.0 final --- bower_components/bootstrap/js/tests/unit/modal.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'bower_components/bootstrap/js/tests/unit/modal.js') 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 + .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() + }) }) -- cgit v1.2.3