diff options
| author | fat-kun <[email protected]> | 2013-02-28 21:24:27 -0800 |
|---|---|---|
| committer | fat-kun <[email protected]> | 2013-02-28 21:24:27 -0800 |
| commit | eb24718add4dd36fe92fdbdb79e6ff4ce5919300 (patch) | |
| tree | c85d91c9cb9b0b54f48f6747aa08d7db81eafce0 /js/tests/unit/bootstrap-modal.js | |
| parent | 16111a5e454a8af4407f4217b5defb6d7a9bdbd3 (diff) | |
| parent | 6b2a010357e184e670a2f4768e37d4886e8a6597 (diff) | |
| download | bootstrap-2.3.1.tar.xz bootstrap-2.3.1.zip | |
Merge pull request #7111 from twitter/2.3.1-wipv2.3.1
2.3.1 wip
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 98aa990a6..b0096f8ed 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 |
