(p: Plottable.Point, mode: TestMethods.InteractionMode, target: SimpleSelection<void>)
| 37 | } |
| 38 | |
| 39 | function triggerPointerEvent(p: Plottable.Point, mode: TestMethods.InteractionMode, target: SimpleSelection<void>) { |
| 40 | const type = mode === TestMethods.InteractionMode.Mouse ? TestMethods.InteractionType.Move : TestMethods.InteractionType.Start; |
| 41 | TestMethods.triggerFakeInteractionEvent(mode, type, target, p.x, p.y); |
| 42 | } |
| 43 | |
| 44 | [TestMethods.InteractionMode.Mouse, TestMethods.InteractionMode.Touch].forEach((mode) => { |
| 45 | describe(`Listening to ${MODE_NAME[mode]} events`, () => { |
no outgoing calls
no test coverage detected