From: lucascono Date: Wed, 4 Oct 2017 11:55:40 +0000 (-0300) Subject: Unit test for modal bug fix X-Git-Tag: v4.0.0-beta.2~93^2~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47968c8126027c079e9a54c71a63b5dfaf3c0bda;p=thirdparty%2Fbootstrap.git Unit test for modal bug fix Unit test for pull request #24240 --- diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index e026cd7f14..d55a552ade 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -673,4 +673,17 @@ $(function () { $toggleBtn.trigger('click') setTimeout(done, 500) }) + + QUnit.test('should not try to open a modal which is already visible', function (assert) { + assert.expect(1) + var done = assert.async() + var count = 0 + + $('