From 30e7df6cca6d5688b456b026c457ab98acc94b55 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 12 May 2020 07:59:22 +0300 Subject: [PATCH] Backport d59de33 from #30772 Add a test about the scrollbar issue on non-integer width --- js/tests/unit/modal.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 71229a79cf..fefd84fceb 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -745,6 +745,45 @@ $(function () { }).bootstrapModal('show') }) + QUnit.test('should not adjust the inline body padding when it does not overflow, even on a scaled display', function (assert) { + assert.expect(1) + var done = assert.async() + + var $modal = $([ + '