From 8ece899ba84aa0061576da0c5f894821724a151f Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 9 Sep 2015 09:26:14 +0200 Subject: [PATCH] Add tests about padding restoration --- js/tests/unit/modal.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) 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') + + $('