aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/modal.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-04-15 12:00:26 +0200
committerJohann-S <[email protected]>2019-04-15 13:48:27 +0200
commit14f53d9baa80807486dad0314654f8c19b1b9635 (patch)
tree6a3060d265360cb20bff346a16de87847461b5e0 /js/tests/unit/modal.js
parent80dfee9dc1ca1cd6c00bcc4509109b06b50de54b (diff)
downloadbootstrap-14f53d9baa80807486dad0314654f8c19b1b9635.tar.xz
bootstrap-14f53d9baa80807486dad0314654f8c19b1b9635.zip
fix unit tests for chrome mobile
Diffstat (limited to 'js/tests/unit/modal.js')
-rw-r--r--js/tests/unit/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js
index 82b37f236..0137802ed 100644
--- a/js/tests/unit/modal.js
+++ b/js/tests/unit/modal.js
@@ -800,7 +800,7 @@ $(function () {
var $modalBody = $('.modal-body')
$modalBody.scrollTop(100)
- assert.strictEqual($modalBody.scrollTop(), 100)
+ assert.ok($modalBody.scrollTop() > 95 && $modalBody.scrollTop() <= 100)
$modal.on('shown.bs.modal', function () {
assert.strictEqual($modalBody.scrollTop(), 0, 'modal body scrollTop should be 0 when opened')