From e1f5d819c73ad66e6ec0480e75e5e08c815a633e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 29 Mar 2020 09:59:54 +0300 Subject: Remove `MSPointerEvent` and `ms-touch-action` in tests (#30463) --- js/tests/unit/carousel.spec.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'js/tests/unit') diff --git a/js/tests/unit/carousel.spec.js b/js/tests/unit/carousel.spec.js index a163f9ae4..be32d19d9 100644 --- a/js/tests/unit/carousel.spec.js +++ b/js/tests/unit/carousel.spec.js @@ -5,12 +5,11 @@ import EventHandler from '../../src/dom/event-handler' import { getFixture, clearFixture, createEvent, jQueryMock } from '../helpers/fixture' describe('Carousel', () => { - const { Simulator, PointerEvent, MSPointerEvent } = window - const originWinPointerEvent = PointerEvent || MSPointerEvent - const supportPointerEvent = Boolean(PointerEvent || MSPointerEvent) + const { Simulator, PointerEvent } = window + const originWinPointerEvent = PointerEvent + const supportPointerEvent = Boolean(PointerEvent) - window.MSPointerEvent = null - const cssStyleCarousel = '.carousel.pointer-event { -ms-touch-action: none; touch-action: none; }' + const cssStyleCarousel = '.carousel.pointer-event { touch-action: none; }' const stylesCarousel = document.createElement('style') stylesCarousel.type = 'text/css' -- cgit v1.2.3