aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-03-09 15:37:46 +0200
committerXhmikosR <[email protected]>2020-03-18 20:59:27 +0200
commit018a94c9c1766c2f191d98f14d8a780882d671ae (patch)
treec4cc4e590358ec01b4b090fe35cbf515865e9d05 /js
parent47aef7b2c6f4570443a16f8db302586a7ce548af (diff)
downloadbootstrap-018a94c9c1766c2f191d98f14d8a780882d671ae.tar.xz
bootstrap-018a94c9c1766c2f191d98f14d8a780882d671ae.zip
Remove Internet Explorer leftovers
Diffstat (limited to 'js')
-rw-r--r--js/tests/unit/modal.spec.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/js/tests/unit/modal.spec.js b/js/tests/unit/modal.spec.js
index b4923ab3f..62d0835ee 100644
--- a/js/tests/unit/modal.spec.js
+++ b/js/tests/unit/modal.spec.js
@@ -653,7 +653,6 @@ describe('Modal', () => {
it('should enforce focus', done => {
fixtureEl.innerHTML = '<div class="modal"><div class="modal-dialog" /></div>'
- const isIE11 = Boolean(window.MSInputMethodContext) && Boolean(document.documentMode)
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -668,11 +667,6 @@ describe('Modal', () => {
modalEl.addEventListener('shown.bs.modal', () => {
expect(modal._enforceFocus).toHaveBeenCalled()
- if (isIE11) {
- done()
- return
- }
-
spyOn(modal._element, 'focus')
document.addEventListener('focusin', focusInListener)