From: Johann Date: Sat, 26 Nov 2016 06:57:20 +0000 (+0100) Subject: Add test unit to check logic of ignoreBackdropClick (#18245) X-Git-Tag: v4.0.0-alpha.6~414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce18a66809823966dc9b8748d54b2087f752ea52;p=thirdparty%2Fbootstrap.git Add test unit to check logic of ignoreBackdropClick (#18245) --- diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 2d5911af3b..cd3c96b9e5 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -174,6 +174,19 @@ $(function () { .bootstrapModal('show') }) + QUnit.test('should not close modal when clicking outside of modal-content if data-backdrop="true"', function (assert) { + assert.expect(1) + var done = assert.async() + + $('