(fixture: ComponentFixture<any>, element: Element)
| 113 | * @param element Element which is being dragged. |
| 114 | */ |
| 115 | export function startDraggingViaTouch(fixture: ComponentFixture<any>, element: Element) { |
| 116 | dispatchTouchEvent(element, 'touchstart'); |
| 117 | fixture.detectChanges(); |
| 118 | |
| 119 | dispatchTouchEvent(document, 'touchmove'); |
| 120 | fixture.detectChanges(); |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * @param fixture Fixture on which to run change detection. |
no test coverage detected