Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Vanduynslager <pierre.denis.vanduynslager@gmail.com>2017-03-29 00:43:16 +0300
committerJohann-S <johann.servoire@gmail.com>2017-03-29 00:43:15 +0300
commit48c5efa4c3c439d8720b8475ec3e372c6974a12a (patch)
tree927c262f444f4aaeb0f598cf35ab7b1b385ae76a /js/tests/visual/modal.html
parentce0e2f8e76dade4b6ec9d6eb541c6988739f0653 (diff)
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 d971a45c70..e999514f7b 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>