From 1552fa7c8e0d898662301bb8e3e029463c065186 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Sun, 25 Nov 2018 14:34:19 +0100 Subject: [PATCH] be sure to enforce focus on modal --- js/tests/unit/modal.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 1156ce0c7009..8e67d83a046f 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 = $([ + '