aboutsummaryrefslogtreecommitdiff
path: root/js/tests/visual/modal.html
diff options
context:
space:
mode:
authorPierre Vanduynslager <[email protected]>2017-03-28 17:43:16 -0400
committerJohann-S <[email protected]>2017-03-28 23:43:15 +0200
commit48c5efa4c3c439d8720b8475ec3e372c6974a12a (patch)
tree927c262f444f4aaeb0f598cf35ab7b1b385ae76a /js/tests/visual/modal.html
parentce0e2f8e76dade4b6ec9d6eb541c6988739f0653 (diff)
downloadbootstrap-48c5efa4c3c439d8720b8475ec3e372c6974a12a.tar.xz
bootstrap-48c5efa4c3c439d8720b8475ec3e372c6974a12a.zip
Fix JS components console error "Error: <Component> is transitioning"
Diffstat (limited to 'js/tests/visual/modal.html')
-rw-r--r--js/tests/visual/modal.html21
1 files changed, 0 insertions, 21 deletions
diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html
index d971a45c7..e999514f7 100644
--- a/js/tests/visual/modal.html
+++ b/js/tests/visual/modal.html
@@ -187,26 +187,6 @@
}
}
- // Should throw an error because modal is in transition
- function testModalTransitionError() {
- var err = false
- // Close #myModal
- $('#myModal').on('shown.bs.modal', function () {
- $('#myModal').modal('hide').off('shown.bs.modal')
- if (!err) {
- alert('No error thrown for : testModalTransitionError')
- }
- })
-
- try {
- $('#myModal').modal('show').modal('hide')
- }
- catch (e) {
- err = true
- console.error(e.message)
- }
- }
-
$(function () {
$('[data-toggle="popover"]').popover()
$('[data-toggle="tooltip"]').tooltip()
@@ -219,7 +199,6 @@
$('#firefoxModal').on('focus', reportFirefoxTestResult.bind(false))
$('#ff-bug-input').on('focus', reportFirefoxTestResult.bind(true))
})
- testModalTransitionError()
})
</script>
</body>