From: Johann-S Date: Wed, 9 Sep 2015 07:26:14 +0000 (+0200) Subject: Add tests about padding restoration X-Git-Tag: v4.0.0-alpha.6~469^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17536%2Fhead;p=thirdparty%2Fbootstrap.git Add tests about padding restoration --- diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 6da09e3c6e..d5b83a1da0 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -334,6 +334,44 @@ $(function () { .bootstrapModal('show') }) + QUnit.test('should have a paddingRight when the modal is taller than the viewport', function (assert) { + assert.expect(2) + var done = assert.async() + $('').appendTo('#qunit-fixture') + $('.navbar-fixed-top, .navbar-fixed-bottom, .is-fixed').css('padding-right', '10px') + + $('