]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix unit test modal
authorJohann-S <johann.servoire@gmail.com>
Wed, 20 Sep 2017 11:32:16 +0000 (13:32 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 20 Feb 2019 20:05:45 +0000 (22:05 +0200)
js/tests/unit/modal.js

index cfac27bba2f3e3efd6def149a2423ea0487a0563..7aa7a95b3cdcb79016d32d0c2ad65865c47f4955 100644 (file)
@@ -549,7 +549,7 @@ $(function () {
 
     $('<div id="modal-test"/>')
       .on('hidden.bs.modal', function () {
-        assert.strictEqual($body.attr('style').indexOf('padding-right'), -1, 'body does not have inline padding set')
+        assert.strictEqual($body.css('padding-left'), '0px', 'body does not have inline padding set')
         $style.remove()
         done()
       })