MCPcopy Create free account
hub / github.com/ampproject/amphtml / sendEvent

Function sendEvent

test/unit/test-gesture.js:66–70  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

64 });
65
66 function sendEvent(event) {
67 event.preventDefault = () => {};
68 event.stopPropagation = () => {};
69 eventListeners[event.type](event);
70 }
71
72 it('onPointerDown should be called', () => {
73 const handler = env.sandbox.spy();

Callers 1

test-gesture.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected