|
6 | 6 | * found in the LICENSE file at https://angular.io/license
|
7 | 7 | */
|
8 | 8 |
|
9 |
| -import {dispatchMouseEvent, dispatchPointerEvent, dispatchTouchEvent} from '@angular/cdk/testing/private'; |
| 9 | +import { |
| 10 | + dispatchMouseEvent, |
| 11 | + dispatchPointerEvent, |
| 12 | + dispatchTouchEvent, |
| 13 | +} from '@angular/cdk/testing/private'; |
10 | 14 | import {Component, DebugElement, Type} from '@angular/core';
|
11 | 15 | import {ComponentFixture, fakeAsync, TestBed, tick, waitForAsync} from '@angular/core/testing';
|
12 | 16 | import {By} from '@angular/platform-browser';
|
@@ -335,22 +339,22 @@ function dispatchPointerOrTouchEvent(node: Node, type: PointerEventType, x?: num
|
335 | 339 | }
|
336 | 340 |
|
337 | 341 | /** The pointer event types used by the MDC Slider. */
|
338 |
| -enum PointerEventType { |
| 342 | +const enum PointerEventType { |
339 | 343 | POINTER_DOWN = 'pointerdown',
|
340 | 344 | POINTER_UP = 'pointerup',
|
341 | 345 | POINTER_MOVE = 'pointermove',
|
342 | 346 | }
|
343 | 347 |
|
344 | 348 | /** The touch event types used by the MDC Slider. */
|
345 |
| -enum TouchEventType { |
| 349 | +const enum TouchEventType { |
346 | 350 | TOUCH_START = 'touchstart',
|
347 | 351 | TOUCH_END = 'touchend',
|
348 | 352 | TOUCH_MOVE = 'touchmove',
|
349 | 353 | }
|
350 | 354 |
|
351 | 355 | /** Returns the touch event equivalent of the given pointer event. */
|
352 | 356 | function pointerEventTypeToTouchEventType(pointerEventType: PointerEventType) {
|
353 |
| - switch(pointerEventType) { |
| 357 | + switch (pointerEventType) { |
354 | 358 | case PointerEventType.POINTER_DOWN:
|
355 | 359 | return TouchEventType.TOUCH_START;
|
356 | 360 | case PointerEventType.POINTER_UP:
|
|
0 commit comments