diff options
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/modal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 5ee58616f..7a0660ea2 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -154,7 +154,7 @@ $(function () { ok($('#modal-test').length, 'modal insterted into dom') $('.contents').click() ok($('#modal-test').is(':visible'), 'modal visible') - $('#modal-test').click() + $('#modal-test').mousedown() }) .on('hidden.bs.modal', function () { ok(!$('#modal-test').is(':visible'), 'modal hidden') @@ -212,7 +212,7 @@ $(function () { div .on('shown.bs.modal', function () { triggered = 0 - $('#modal-test').click() + $('#modal-test').mousedown() }) .on('hide.bs.modal', function () { triggered += 1 |
