From 487513ff03b3d63ad3b3fe641dae2a3882d5ded5 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Mon, 28 Aug 2017 16:21:04 +0100 Subject: [PATCH 1/5] Add failing test When the body does not overflow (achieved by hiding the QUnit container), it should not be given a margin. --- js/tests/unit/modal.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 5b265df158..3611dfdf11 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -391,6 +391,25 @@ $(function () { .bootstrapModal('show') }) + QUnit.test('should not adjust the inline body padding when it does not overflow', function (assert) { + assert.expect(1) + var done = assert.async() + var $body = $(document.body) + var originalPadding = $body.css('padding-right') + + $('#qunit-container').hide() + $('