From: Johann-S Date: Sun, 25 Nov 2018 16:20:55 +0000 (+0100) Subject: Add test to make sure we enforce focus on modal (#27723) X-Git-Tag: v4.2.0~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ab52ba2e9dc2549304fcef14dede7806384f34;p=thirdparty%2Fbootstrap.git Add test to make sure we enforce focus on modal (#27723) --- diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 1156ce0c70..8e67d83a04 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -735,4 +735,45 @@ $(function () { done() }).bootstrapModal('show') }) + + QUnit.test('should enforce focus', function (assert) { + assert.expect(4) + var done = assert.async() + + var $modal = $([ + '