From de0bb1e0522d14bcdef70746da277992f992f83c Mon Sep 17 00:00:00 2001 From: Shohei Yoshida Date: Mon, 21 Jan 2019 06:28:16 +0900 Subject: Scrollable modal (#27769) --- js/tests/unit/modal.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'js/tests') diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 4d7682aaa..176290480 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -790,4 +790,31 @@ $(function () { }) .bootstrapModal('show') }) + + QUnit.test('should scroll to top of the modal body if the modal has .modal-dialog-scrollable class', function (assert) { + assert.expect(2) + var done = assert.async() + + var $modal = $([ + '