From: David Bailey Date: Mon, 28 Aug 2017 15:21:04 +0000 (+0100) Subject: Add failing test X-Git-Tag: v4.0.0-beta.2~299^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=487513ff03b3d63ad3b3fe641dae2a3882d5ded5;p=thirdparty%2Fbootstrap.git Add failing test When the body does not overflow (achieved by hiding the QUnit container), it should not be given a margin. --- 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() + $('