diff options
author | fat <jacobthornton@gmail.com> | 2013-03-01 09:15:33 +0400 |
---|---|---|
committer | fat <jacobthornton@gmail.com> | 2013-03-01 09:15:33 +0400 |
commit | 839b0c893fe2f2760682bee9dc49d5fa0b9c0412 (patch) | |
tree | 2764caf2be2fa945700a353de3576bcee71ea468 /js/tests/unit/bootstrap-modal.js | |
parent | 0992a859329c80d15b9868fc426de8aefa1f8ea0 (diff) |
shiiiit
Diffstat (limited to 'js/tests/unit/bootstrap-modal.js')
-rw-r--r-- | js/tests/unit/bootstrap-modal.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/tests/unit/bootstrap-modal.js b/js/tests/unit/bootstrap-modal.js index 98aa990a67..b0096f8ed3 100644 --- a/js/tests/unit/bootstrap-modal.js +++ b/js/tests/unit/bootstrap-modal.js @@ -117,4 +117,21 @@ $(function () { }) .modal("toggle") }) + + test("should allow modal close with 'backdrop:false'", function () { + stop() + $.support.transition = false + var div = $("<div>", { id: 'modal-test', "data-backdrop": false }) + div + .bind("shown", function () { + ok($('#modal-test').is(":visible"), 'modal visible') + div.modal("hide") + }) + .bind("hidden", function() { + ok(!$('#modal-test').is(":visible"), 'modal hidden') + div.remove() + start() + }) + .modal("show") + }) })
\ No newline at end of file |