diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 28c1e0ec74..f5157d4544 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -363,6 +363,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') + + $('