mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 08:04:59 +02:00
Remove Internet Explorer leftovers
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user